Skip to main content
Glama

get_document_types

Retrieve configured document types like invoices and credit notes from Siigo accounting software, with optional filtering by specific type codes.

Instructions

Get all configured document types.

Args: document_type: Optional filter by type (FV=invoice, NC=credit note, etc.)

Returns a list of document types configured in the account. Common types: FV (factura), NC (nota crédito), RC (recibo de caja).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
document_typeNo

Implementation Reference

  • The core implementation of the 'get_document_types' MCP tool handler. It fetches document types from the Siigo API, optionally filtered by type.
    @mcp.tool async def get_document_types( ctx: Context, document_type: str | None = None, ) -> list[dict[str, Any]]: """Get all configured document types. Args: document_type: Optional filter by type (FV=invoice, NC=credit note, etc.) Returns a list of document types configured in the account. Common types: FV (factura), NC (nota crédito), RC (recibo de caja). """ params: dict[str, Any] = {} if document_type: params["type"] = document_type return await get_client(ctx).get("/document-types", params=params or None)
  • Registration of the tool in the dynamic tool functions map for lazy loading in discovery mode.
    "get_document_types": reference.get_document_types,
  • Discovery index entry providing metadata (name, category, summary) for the tool schema.
    {"name": "get_warehouses", "category": "reference", "summary": "Get all warehouse locations"},

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