Skip to main content
Glama
by paypal
tool.py676 B
""" This tool allows agents to interact with the PayPal API. """ from __future__ import annotations from typing import Any, Optional, Type from pydantic import BaseModel from crewai_tools import BaseTool from ..shared.api import PayPalAPI class PayPalTool(BaseTool): """CrewAI-compatible tool for interacting with the PayPal API.""" paypal_api: PayPalAPI method: str name: str = "" description: str = "" args_schema: Optional[Type[BaseModel]] = None def _run( self, *args: Any, **kwargs: Any, ) -> str: """Use the PayPal API to run an operation.""" return self.paypal_api.run(self.method, kwargs)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/paypal/agent-toolkit'

If you have feedback or need assistance with the MCP directory API, please join our Discord server