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
| Name | Required | Description | Default |
|---|---|---|---|
| document_type | No |
Implementation Reference
- src/siigo_mcp/tools/reference.py:30-46 (handler)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)
- src/siigo_mcp/tools/discovery.py:75-75 (registration)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"},