MCP tools
The Apiome catalog server registers 20 tools. Call them with tools/call over stdio or streamable HTTP (/mcp); see the MCP quick-start to connect a host.
| Tool | Summary |
|---|---|
export.targets | List every registered export target for an artifact version (MFX-40.1): each target's descriptor (key, format, label), its fidelity tier and preserved share for this source, its options schema and defaults. |
pact.can_i_deploy | Can this pacticipant version be deployed? |
pact.list | List the latest pact of every consumer -> provider integration in the key's workspace (PFX-4.5): consumer, provider, consumerVersion, sha, specificationVersion, interactionCount, publishedAt and the pact's latestVerification (success, verifiedAt, providerVersion, kind) or null. |
pact.matrix | Pact Broker matrix query (PFX-4.5; what pact-broker can-i-deploy asks). |
pact.record_deployment | WRITE: record that a pacticipant version is now deployed to an environment (PFX-4.5; pact-broker record-deployment). |
ping | Smoke-test: service name, package version, Postgres reachability, UTC timestamp. |
project.list | List distinct projects (tenant + project) that have at least one published spec revision the caller can see. |
spec.describe | Return metadata for a single published OpenAPI spec revision by id (UUID). |
spec.describe_component | Return one OpenAPI component definition for a published spec revision by id (UUID): kind is schemas, parameters, responses, or securitySchemes (same grouping as spec.list_components); name is the component key in that section. |
spec.describe_operation | Return OpenAPI fragments for one HTTP operation on a published spec revision: parameters (path-item + operation merge, operation wins same name/in), requestBody, responses, and security (operation override or document default). |
spec.export_yaml | Return the generated OpenAPI 3.1 document as YAML text for a published spec revision by id (UUID). |
spec.get_openapi | Return the generated OpenAPI 3.1 document (JSON object) for a published spec revision by id (UUID). |
spec.list | List published OpenAPI specs with cursor pagination. |
spec.list_components | Return OpenAPI component names for a published spec revision by id (UUID), grouped by kind: schemas, parameters, responses, securitySchemes. |
spec.list_my_specs | List OpenAPI spec revisions this MCP API key can read: in-scope public catalog rows (apiome.mcp_v_public_specs) plus in-scope private published revisions for the key's tenant (same rules as spec.list). |
spec.list_operations | Return a compact index of HTTP operations for a published spec revision by id (UUID): each item has path, method, operation_id, summary, and tags. |
spec.list_tags | Distinct version-tag names across published public OpenAPI specs with counts of specs that expose each tag. |
spec.search | Search published public OpenAPI specs with Postgres full-text search (english config) over project title, revision description, version label, and tag names (maintained in apiome.versions.mcp_public_doc_tsv). |
spec.search_semantic | Semantic search over published public specs that have mcp_public_embedding populated (pgvector cosine distance vs OpenAI-compatible query embeddings). |
version.export | Export an artifact version to any registered target (MFX-40.1) — the same pipeline as the Export dialog and apiome export. |
export.targets
List every registered export target for an artifact version (MFX-40.1): each target's descriptor (key, format, label), its fidelity tier and preserved share for this source, its options schema and defaults. Requires an API key; exports within the key's tenant and scope. Pass a target key to version.export. artifact: the artifact / project id; version: a revision id or label (latest when omitted).
Arguments:
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
artifact | string | yes | ||
version | string or null | no | null |
Returns: object.
pact.can_i_deploy
Can this pacticipant version be deployed? (PFX-4.5; pact-broker can-i-deploy). pacticipant and version name what is deployed; give exactly one of to_environment (checked against everything currently deployed to or released in it) or to_tag (the latest version of each other pacticipant with that tag). ignore leaves pacticipants out of the verdict. Same answer as pact.matrix: read summary.deployable (true / false / null while a result is missing - retry after retryAfterSeconds), summary.reason and notices; at most max_rows rows. Requires pacts:view. Refused (mcp-pact-agent-action-off) when the workspace has switched agent reads off (Contracts → Settings → Agents).
Hints: Read-only: yes, Idempotent: yes, Open world: no.
Arguments:
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
pacticipant | string | yes | ||
version | string | yes | ||
to_environment | string or null | no | null | |
to_tag | string or null | no | null | |
ignore | array or null | no | null | |
max_rows | integer or null | no | null |
Returns: object.
pact.list
List the latest pact of every consumer -> provider integration in the key's workspace (PFX-4.5): consumer, provider, consumerVersion, sha, specificationVersion, interactionCount, publishedAt and the pact's latestVerification (success, verifiedAt, providerVersion, kind) or null. No pact content. Optional provider / consumer filters (handle, id or name). limit 1-100 (default 50); pass nextCursor as cursor for the next page. Requires an MCP API key without a project limit, whose owner has pacts:view. Refused (mcp-pact-agent-action-off) when the workspace has switched agent reads off (Contracts → Settings → Agents).
Hints: Read-only: yes, Idempotent: yes, Open world: no.
Arguments:
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
provider | string or null | no | null | |
consumer | string or null | no | null | |
limit | integer or null | no | null | |
cursor | string or null | no | null |
Returns: object.
pact.matrix
Pact Broker matrix query (PFX-4.5; what pact-broker can-i-deploy asks). selectors: [{pacticipant, version?, latest?, tag?, branch?, environment?, main_branch?}] - one selector with a destination asks 'can I deploy this?', two or more ask 'do these work together?'. Destination: to_environment, to_tag (with latest=true), latest, or main_branch. latestby: cvp | cvpv | cp. ignore: ['Name' or {pacticipant, version?}]. Answers summary.deployable (true / false / null = a verification result is missing; retryAfterSeconds says when to ask again), summary.reason, notices [{type, code, text}] and at most max_rows (1-100, default 50) compact rows with rowsTotal / rowsTruncated; the verdict always reads every row. Unknown selector keys are refused. Requires pacts:view. Refused (mcp-pact-agent-action-off) when the workspace has switched agent reads off (Contracts → Settings → Agents).
Hints: Read-only: yes, Idempotent: yes, Open world: no.
Arguments:
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
selectors | array of object | yes | ||
latestby | string or null | no | null | |
to_environment | string or null | no | null | |
to_tag | string or null | no | null | |
latest | boolean or null | no | null | |
main_branch | boolean or null | no | null | |
ignore | array or null | no | null | |
limit | integer or null | no | null | |
max_rows | integer or null | no | null |
Returns: object.
pact.record_deployment
WRITE: record that a pacticipant version is now deployed to an environment (PFX-4.5; pact-broker record-deployment). environment is the environment's name; application_instance names the instance (region, customer) when the environment has several. The pacticipant's previous deployment there is marked undeployed. Answers {created, deployment}; created=false when it already was the current deployment. The version must already be recorded (published a pact or verified one). Requires an MCP API key whose owner has pacts:create. The workspace must allow agents to record deployments (Contracts → Settings → Agents; off by default), and an agent never records to an environment marked production (mcp-pact-agent-production); every refusal is audited.
Hints: Read-only: no, Destructive: no, Idempotent: yes, Open world: no.
Arguments:
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
pacticipant | string | yes | ||
version | string | yes | ||
environment | string | yes | ||
application_instance | string or null | no | null |
Returns: object.
ping
Smoke-test: service name, package version, Postgres reachability, UTC timestamp. Requires an MCP API key.
Arguments:
Takes no arguments.
Returns: object.
project.list
List distinct projects (tenant + project) that have at least one published spec revision the caller can see. Requires an MCP API key: merges in-scope public rows (apiome.mcp_v_public_specs) plus in-scope private published revisions for the key's tenant (same scope rules as spec.list). Each item: tenant_id, project_id, title, updated_at (UTC Z; latest revision activity in scope). Optional filters: tenant_id, project_id (UUID strings). limit defaults to 50, capped at 100. Pass next_cursor from the previous response for the next page.
Arguments:
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
tenant_id | string or null | no | null | |
project_id | string or null | no | null | |
limit | integer or null | no | null | |
cursor | string or null | no | null |
Returns: object.
spec.describe
Return metadata for a single published OpenAPI spec revision by id (UUID). Fields: id, title, version, description, owner (tenant slug), tags, updated_at (UTC Z). Requires an MCP API key: in-scope public revisions (apiome.mcp_v_public_specs) and in-scope private published revisions for the key's tenant (#3012). Raises not-found when the revision is missing, out of scope, or not accessible.
Arguments:
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
spec_id | string | yes |
Returns: object.
spec.describe_component
Return one OpenAPI component definition for a published spec revision by id (UUID): kind is schemas, parameters, responses, or securitySchemes (same grouping as spec.list_components); name is the component key in that section. Internal #/… $ref values are expanded; external refs are left as-is. Same visibility and auth rules as spec.get_openapi (#3021). Raises not-found for inaccessible revisions or unknown kind/name.
Arguments:
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
spec_id | string | yes | ||
kind | string | yes | ||
name | string | yes |
Returns: unstructured content (no output schema).
spec.describe_operation
Return OpenAPI fragments for one HTTP operation on a published spec revision: parameters (path-item + operation merge, operation wins same name/in), requestBody, responses, and security (operation override or document default). Internal #/… $ref values are expanded; external refs are left as-is. Same visibility and auth rules as spec.get_openapi (#3019). Raises not-found for inaccessible revisions or unknown path/method.
Arguments:
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
spec_id | string | yes | ||
path | string | yes | ||
method | string | yes |
Returns: object.
spec.export_yaml
Return the generated OpenAPI 3.1 document as YAML text for a published spec revision by id (UUID). Same semantics as spec.get_openapi: requires an MCP API key; in-scope public and private published revisions are included (#3017). Response field openapi_yaml round-trips with YAML loaders to the same structure as the JSON tool. If UTF-8 YAML exceeds APIOME_MCP_OPENAPI_MAX_JSON_BYTES (default 2 MiB), returns an error analogous to HTTP 413.
Arguments:
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
spec_id | string | yes |
Returns: object.
spec.get_openapi
Return the generated OpenAPI 3.1 document (JSON object) for a published spec revision by id (UUID). Matches the REST schema export shape (paths, components.schemas, servers, securitySchemes). Requires an MCP API key: in-scope public and private published revisions for the key's tenant (#3016). Raises not-found when inaccessible. If the serialized document exceeds the configured byte cap (APIOME_MCP_OPENAPI_MAX_JSON_BYTES), returns an error analogous to HTTP 413.
Arguments:
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
spec_id | string | yes |
Returns: object.
spec.list
List published OpenAPI specs with cursor pagination. Requires an MCP API key: results merge in-scope public rows (apiome.mcp_v_public_specs) plus in-scope private revisions for the key's tenant (#3011). Optional filters: tenant_id, project_id (UUID strings). limit defaults to 50, capped at 100. Pass next_cursor from the previous response for the next page.
Arguments:
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
tenant_id | string or null | no | null | |
project_id | string or null | no | null | |
limit | integer or null | no | null | |
cursor | string or null | no | null |
Returns: object.
spec.list_components
Return OpenAPI component names for a published spec revision by id (UUID), grouped by kind: schemas, parameters, responses, securitySchemes. Each kind maps to a sorted list of component keys; kinds with no entries are omitted. Same visibility and auth rules as spec.get_openapi (#3020).
Arguments:
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
spec_id | string | yes |
Returns: object.
spec.list_my_specs
List OpenAPI spec revisions this MCP API key can read: in-scope public catalog rows (apiome.mcp_v_public_specs) plus in-scope private published revisions for the key's tenant (same rules as spec.list). Requires an MCP API key. Response shape matches spec.list: items, has_more, next_cursor. Optional tenant_id / project_id (UUID strings). limit defaults to 50, capped at 100 (#3014).
Arguments:
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
tenant_id | string or null | no | null | |
project_id | string or null | no | null | |
limit | integer or null | no | null | |
cursor | string or null | no | null |
Returns: object.
spec.list_operations
Return a compact index of HTTP operations for a published spec revision by id (UUID): each item has path, method, operation_id, summary, and tags. Sorted by path then method. Same visibility and auth rules as spec.get_openapi: requires an MCP API key; in-scope public and private published revisions are included (#3018). Does not return the full OpenAPI document.
Arguments:
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
spec_id | string | yes |
Returns: result — array of object.
spec.list_tags
Distinct version-tag names across published public OpenAPI specs with counts of specs that expose each tag. Sorted by count descending, then tag name ascending. Counts are refreshed about every 45 seconds. Cursor pagination: limit defaults to 50, capped at 100; pass next_cursor from the previous response for the next page. Requires an MCP API key.
Arguments:
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
limit | integer or null | no | null | |
cursor | string or null | no | null |
Returns: object.
spec.search
Search published public OpenAPI specs with Postgres full-text search (english config) over project title, revision description, version label, and tag names (maintained in apiome.versions.mcp_public_doc_tsv). Required q must be non-empty after trimming and is passed to plainto_tsquery. Results use ts_rank_cd with cursor pagination: limit defaults to 50, capped at 100; pass next_cursor from the previous response for the next page. Requires an MCP API key.
Arguments:
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
q | string | yes | ||
limit | integer or null | no | null | |
cursor | string or null | no | null |
Returns: object.
spec.search_semantic
Semantic search over published public specs that have mcp_public_embedding populated (pgvector cosine distance vs OpenAI-compatible query embeddings). Requires APIOME_MCP_OPENAI_API_KEY. Uses the same pagination shape as spec.search (items, has_more, next_cursor). Returns the 200 nearest specs at most: has_more is false on the page that reaches them. Rows without embeddings are omitted until backfilled. Requires an MCP API key.
Arguments:
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
q | string | yes | ||
limit | integer or null | no | null | |
cursor | string or null | no | null |
Returns: object.
version.export
Export an artifact version to any registered target (MFX-40.1) — the same pipeline as the Export dialog and apiome export. Returns the job's state, the structured fidelity report (fidelity.summary tier/preserved share, fidelity.report: the per-construct LossinessReport, fidelity.advisory), the transcoding guard, and the files: inline content when small (contentInline), otherwise a REST downloadPath. advisory is the canonical fidelity advisory — the same words the UI and CLI show. A conversion that loses fidelity (tier other than lossless) emits nothing unless allow_lossy=true: it answers state=blocked with the report and the advisory, so read them first (MFX-40.2). A severe conversion also fails unless confirm=true. When the job outlives the wait it answers state=running with jobId: call again with job_id to collect it. Requires an API key.
Arguments:
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
artifact | string or null | no | null | |
target | string or null | no | null | |
version | string or null | no | null | |
options | object or null | no | null | |
confirm | boolean | no | false | |
allow_lossy | boolean | no | false | |
job_id | string or null | no | null |
Returns: object.
This page is generated from the server's registry; regenerate it with cd apiome-mcp && uv run python scripts/generate_mcp_reference_docs.py.