Skip to main content

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.

ToolSummary
export.targetsList 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_deployCan this pacticipant version be deployed?
pact.listList 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.matrixPact Broker matrix query (PFX-4.5; what pact-broker can-i-deploy asks).
pact.record_deploymentWRITE: record that a pacticipant version is now deployed to an environment (PFX-4.5; pact-broker record-deployment).
pingSmoke-test: service name, package version, Postgres reachability, UTC timestamp.
project.listList distinct projects (tenant + project) that have at least one published spec revision the caller can see.
spec.describeReturn metadata for a single published OpenAPI spec revision by id (UUID).
spec.describe_componentReturn 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_operationReturn 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_yamlReturn the generated OpenAPI 3.1 document as YAML text for a published spec revision by id (UUID).
spec.get_openapiReturn the generated OpenAPI 3.1 document (JSON object) for a published spec revision by id (UUID).
spec.listList published OpenAPI specs with cursor pagination.
spec.list_componentsReturn OpenAPI component names for a published spec revision by id (UUID), grouped by kind: schemas, parameters, responses, securitySchemes.
spec.list_my_specsList 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_operationsReturn 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_tagsDistinct version-tag names across published public OpenAPI specs with counts of specs that expose each tag.
spec.searchSearch 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_semanticSemantic search over published public specs that have mcp_public_embedding populated (pgvector cosine distance vs OpenAI-compatible query embeddings).
version.exportExport 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:

ArgumentTypeRequiredDefaultDescription
artifactstringyes
versionstring or nullnonull

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:

ArgumentTypeRequiredDefaultDescription
pacticipantstringyes
versionstringyes
to_environmentstring or nullnonull
to_tagstring or nullnonull
ignorearray or nullnonull
max_rowsinteger or nullnonull

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:

ArgumentTypeRequiredDefaultDescription
providerstring or nullnonull
consumerstring or nullnonull
limitinteger or nullnonull
cursorstring or nullnonull

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:

ArgumentTypeRequiredDefaultDescription
selectorsarray of objectyes
latestbystring or nullnonull
to_environmentstring or nullnonull
to_tagstring or nullnonull
latestboolean or nullnonull
main_branchboolean or nullnonull
ignorearray or nullnonull
limitinteger or nullnonull
max_rowsinteger or nullnonull

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:

ArgumentTypeRequiredDefaultDescription
pacticipantstringyes
versionstringyes
environmentstringyes
application_instancestring or nullnonull

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:

ArgumentTypeRequiredDefaultDescription
tenant_idstring or nullnonull
project_idstring or nullnonull
limitinteger or nullnonull
cursorstring or nullnonull

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:

ArgumentTypeRequiredDefaultDescription
spec_idstringyes

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:

ArgumentTypeRequiredDefaultDescription
spec_idstringyes
kindstringyes
namestringyes

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:

ArgumentTypeRequiredDefaultDescription
spec_idstringyes
pathstringyes
methodstringyes

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:

ArgumentTypeRequiredDefaultDescription
spec_idstringyes

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:

ArgumentTypeRequiredDefaultDescription
spec_idstringyes

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:

ArgumentTypeRequiredDefaultDescription
tenant_idstring or nullnonull
project_idstring or nullnonull
limitinteger or nullnonull
cursorstring or nullnonull

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:

ArgumentTypeRequiredDefaultDescription
spec_idstringyes

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:

ArgumentTypeRequiredDefaultDescription
tenant_idstring or nullnonull
project_idstring or nullnonull
limitinteger or nullnonull
cursorstring or nullnonull

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:

ArgumentTypeRequiredDefaultDescription
spec_idstringyes

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:

ArgumentTypeRequiredDefaultDescription
limitinteger or nullnonull
cursorstring or nullnonull

Returns: object.

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:

ArgumentTypeRequiredDefaultDescription
qstringyes
limitinteger or nullnonull
cursorstring or nullnonull

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:

ArgumentTypeRequiredDefaultDescription
qstringyes
limitinteger or nullnonull
cursorstring or nullnonull

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:

ArgumentTypeRequiredDefaultDescription
artifactstring or nullnonull
targetstring or nullnonull
versionstring or nullnonull
optionsobject or nullnonull
confirmbooleannofalse
allow_lossybooleannofalse
job_idstring or nullnonull

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.