lucaledger-mcp

v0.2.0
lucaledger-mcp Checked 11 hours ago Published 1 month ago

Model Context Protocol server for the LucaLedger public API.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

lucaledger_whoami Who am I

Return the identity behind the configured API key: the firm, key kind (firm/partner), granted scopes, and rate/AI limits. Call this first to learn what you're allowed to do.

lucaledger_list_groups List API groups

List the API's endpoint groups (documents, entities, reports, returns, invoicing, ...) with a one-line description and how many endpoints each has. Start here to see what the API can do. No API key required.

lucaledger_search_endpoints Search endpoints

Find endpoints by keyword, group, and/or HTTP method. Returns compact rows (operationId, method, path, summary, required scope). Use the operationId or 'METHOD /path' with lucaledger_describe_endpoint, then lucaledger_read (GET) or lucaledger_write (POST/PUT/PATCH). No API key required.

ParameterTypeDescription
groupstringRestrict to one group (see lucaledger_list_groups).
limitintegerMax rows (default 50).
methodstringRestrict to one HTTP method.
querystringKeyword matched against operationId, path, summary, and group.

lucaledger_describe_endpoint Describe an endpoint

Return the full contract for one endpoint: path and query parameters, the JSON request-body schema, the success-response schema, the required scope, and whether it's async or needs a key. Pass an operationId (e.g. 'documents.create') or 'METHOD /path' (e.g. 'GET /v1/documents'). No API key required.

ParameterTypeDescription
endpoint *stringAn operationId (e.g. 'transactions.list') or 'METHOD /path' (e.g. 'GET /v1/transactions').

lucaledger_read Read data

Read data: run a GET endpoint. Provide an operationId (e.g. 'transactions.list') or 'GET /path', plus path_params and query as needed. Returns { status, headers (rate-limit/request-id), body }. Requires an API key. Read-only - it never changes data; use lucaledger_write for anything that creates or updates.

ParameterTypeDescription
endpoint *stringAn operationId or 'METHOD /path'. If it can't be resolved from the spec, a 'METHOD /path' form is called directly.
path_paramsobjectValues for {templated} path segments, e.g. { id: 'doc_123' }.
queryobjectQuery-string params. Arrays repeat the key. e.g. { entity_id: 'ent_1', limit: 50 }.

lucaledger_write Create or update data

Create or update data: run a POST, PUT or PATCH endpoint. Provide an operationId or 'METHOD /path', plus path_params, query and body as needed. Returns { status, headers (rate-limit/request-id), body }. Requires an API key. Bounded by the key's scopes; a call needing a scope the key lacks returns 403 insufficient_scope. Deleting is not available here. Use lucaledger_read for GET endpoints.

ParameterTypeDescription
endpoint *stringAn operationId or 'METHOD /path'. If it can't be resolved from the spec, a 'METHOD /path' form is called directly.
bodyJSON request body for POST/PATCH/PUT.
idempotency_keystringIdempotency-Key header; safe to retry POSTs with the same key + body.
if_matchstringIf-Match header (ETag) for optimistic concurrency on updates.
path_paramsobjectValues for {templated} path segments, e.g. { id: 'doc_123' }.
queryobjectQuery-string params. Arrays repeat the key. e.g. { entity_id: 'ent_1', limit: 50 }.

lucaledger_call Call any endpoint (legacy)

Legacy: call any API endpoint by method. Prefer lucaledger_read for GET and lucaledger_write for changes. Provide an operationId (e.g. 'transactions.list') or 'METHOD /path'. Supply path_params for any {templated} path segments, query for query-string params, and body for POST/PATCH/PUT payloads. Returns { status, headers (rate-limit/request-id), body }. Requires an API key. Note: key-management endpoints (keys.*, partner key creation) are not callable with an API key.

ParameterTypeDescription
endpoint *stringAn operationId or 'METHOD /path'. If it can't be resolved from the spec, a 'METHOD /path' form is called directly.
bodyJSON request body for POST/PATCH/PUT.
idempotency_keystringIdempotency-Key header; safe to retry POSTs with the same key + body.
if_matchstringIf-Match header (ETag) for optimistic concurrency on updates.
path_paramsobjectValues for {templated} path segments, e.g. { id: 'doc_123' }.
queryobjectQuery-string params. Arrays repeat the key. e.g. { entity_id: 'ent_1', limit: 50 }.