Skip to main content
Glama

get_customer

Retrieve detailed customer information including contacts and addresses from Siigo's electronic invoicing system by providing a customer ID.

Instructions

Get a customer by ID.

Args: customer_id: The customer's GUID

Returns the full customer details including contacts and addresses.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
customer_idYes

Implementation Reference

  • The core handler function for the 'get_customer' tool, decorated with @mcp.tool. It fetches customer details from the Siigo API using the provided customer_id.
    @mcp.tool async def get_customer(ctx: Context, customer_id: str) -> dict[str, Any]: """Get a customer by ID. Args: customer_id: The customer's GUID Returns the full customer details including contacts and addresses. """ return await get_client(ctx).get(f"/customers/{customer_id}")
  • Tool metadata in TOOL_INDEX, providing name, category, and summary for discovery in lazy loading mode.
    {"name": "get_customer", "category": "customers", "summary": "Get a customer by ID"},
  • Registration mapping the 'get_customer' tool name to its handler function from the customers module in the dynamic tool loader.
    "get_customer": customers.get_customer,

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/dsfaccini/siigo-mcp'

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