lucaledger-mcp
v0.2.0Model 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.
| Parameter | Type | Description |
|---|---|---|
group | string | Restrict to one group (see lucaledger_list_groups). |
limit | integer | Max rows (default 50). |
method | string | Restrict to one HTTP method. |
query | string | Keyword 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.
| Parameter | Type | Description |
|---|---|---|
endpoint * | string | An 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.
| Parameter | Type | Description |
|---|---|---|
endpoint * | string | An operationId or 'METHOD /path'. If it can't be resolved from the spec, a 'METHOD /path' form is called directly. |
path_params | object | Values for {templated} path segments, e.g. { id: 'doc_123' }. |
query | object | Query-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.
| Parameter | Type | Description |
|---|---|---|
endpoint * | string | An operationId or 'METHOD /path'. If it can't be resolved from the spec, a 'METHOD /path' form is called directly. |
body | JSON request body for POST/PATCH/PUT. | |
idempotency_key | string | Idempotency-Key header; safe to retry POSTs with the same key + body. |
if_match | string | If-Match header (ETag) for optimistic concurrency on updates. |
path_params | object | Values for {templated} path segments, e.g. { id: 'doc_123' }. |
query | object | Query-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.
| Parameter | Type | Description |
|---|---|---|
endpoint * | string | An operationId or 'METHOD /path'. If it can't be resolved from the spec, a 'METHOD /path' form is called directly. |
body | JSON request body for POST/PATCH/PUT. | |
idempotency_key | string | Idempotency-Key header; safe to retry POSTs with the same key + body. |
if_match | string | If-Match header (ETag) for optimistic concurrency on updates. |
path_params | object | Values for {templated} path segments, e.g. { id: 'doc_123' }. |
query | object | Query-string params. Arrays repeat the key. e.g. { entity_id: 'ent_1', limit: 50 }. |