For AI agents: the complete documentation index is at https://docs.routebase.dev/llms.txt. Every page is also available as Markdown by appending index.md to its URL or by sending Accept: text/markdown.

Connect your agent

Your AI agent can search and read these docs over MCP. The endpoint is read-only and needs no key.

MCP endpoint

https://docs.routebase.dev/mcp

Claude Code Run in a terminal

claude mcp add --transport http routebase-documentation https://docs.routebase.dev/mcp

Cursor Add to .cursor/mcp.json

{
  "mcpServers": {
    "routebase-documentation": {
      "url": "https://docs.routebase.dev/mcp"
    }
  }
}

VS Code Add to .vscode/mcp.json

{
  "servers": {
    "routebase-documentation": {
      "type": "http",
      "url": "https://docs.routebase.dev/mcp"
    }
  }
}

Codex Add to ~/.codex/config.toml

[mcp_servers.routebase-documentation]
url = "https://docs.routebase.dev/mcp"
MCP Reference

Governance — MCP Tools

Spec validation, score weights, custom rules and severities. This page documents the Governance group of the Routebase MCP server, with the scope and the parameters of each tool.

A session that stages its tools advertises this group once the agent calls enable_toolset with the slug governance. Full-access keys, scoped keys and OAuth sessions see every tool they are allowed to call without that step.

apply_rating_fix

Write the fix of one API rating check, all of it or nothing. Run preview_rating_fix first. Returns a receipt that undo_rating_fix takes. Requires project context.

Required scope: specs:write

Parameter Type Required Description
specId string Yes Public ID (GUID) of the API specification
versionId string Yes Public ID (GUID) of the version, must not be published
checkId string Yes Id of the rating check, as get_spec_rating names it, e.g. 'error-format'
targetIds String[] No Public IDs of the endpoints (for 'casing' also schemas) to fix. Omit for all, which 'casing' does not allow.

get_breaking_changes

Identify and classify breaking changes between two specification versions. Returns changes classified as Breaking, NonBreaking, or Deprecated with migration hints. Use this for classified breaking changes; for the full structural diff use compare_versions. Requires project context.

Required scope: specs:read

Parameter Type Required Description
specId string Yes Public ID (GUID) of the API specification
sourceVersionId string Yes Public ID (GUID) of the source (older) version
targetVersionId string Yes Public ID (GUID) of the target (newer) version

get_header_policies

Get the headers that apply to a WHOLE endpoint, grouped by status code, after the org → project → spec cascade. Takes an endpointId; for one response use get_resolved_headers (responseId). Neither returns policy definitions — list those with list_header_policies. Requires project context.

Required scope: specs:read

Parameter Type Required Description
specId string Yes Public ID (GUID) of the API specification
endpointId string Yes Public ID (GUID) of the endpoint

get_spec_rating

Get the API rating of one version of a specification: a score from 0 to 100, a grade, and per facet the checks with their points and the endpoints or schemas that fail them. Checks that do not apply are not counted. Without versionId the newest version is rated. Use this to see what to fix first; for every single finding use lint_spec. Requires project context.

Required scope: specs:read

Parameter Type Required Description
specId string Yes Public ID (GUID) of the API specification
versionId string No Public ID (GUID) of the version to rate. Omit for the newest version.

get_style_guide_rules

Get all available style guide rules with their effective severity at the organization level. Includes built-in rules and custom rules. Use list_project_style_guide_rules for how they resolve inside one project. Requires organization context.

Required scope: org:manage-governance

No parameters.

get_versioning_strategy

Get the versioning strategy configured for an API specification, including version aliases. Use this to read the strategy; to change it use set_versioning_strategy. Requires project context.

Required scope: specs:read

Parameter Type Required Description
specId string Yes Public ID (GUID) of the API specification

lint_spec

Validate an API specification against style guide rules. Returns violations grouped by severity (error, warning, info) with rule details and affected paths. Use this to check against style guide rules; to check against the OpenAPI standard use validate_spec. Requires project context.

Required scope: specs:read

Parameter Type Required Description
specId string Yes Public ID (GUID) of the API specification to lint
versionId string No Version GUID to lint alone, without a notification. Omit for all.

preview_rating_fix

Show what the fix of one API rating check would write, per endpoint. A check has a fix when get_spec_rating returns it with a fix field. Requires project context.

Required scope: specs:read

Parameter Type Required Description
specId string Yes Public ID (GUID) of the API specification
versionId string Yes Public ID (GUID) of the version, must not be published
checkId string Yes Id of the rating check, as get_spec_rating names it, e.g. 'error-format'
targetIds String[] No Public IDs of the endpoints (for 'casing' also schemas) to fix. Omit for all, which 'casing' does not allow.

set_versioning_strategy

Set or update the versioning strategy for an API specification. Defines how API versions are transmitted (URL path, header, query param, content negotiation). Use this to change the strategy; to read the current one use get_versioning_strategy. Requires project context.

Required scope: specs:write

Parameter Type Required Description
specId string Yes Public ID (GUID) of the API specification
strategyType string Yes Strategy type: 'urlPath', 'header', 'queryParam', or 'contentNegotiation'
parameterName string Yes Parameter name for the version (e.g., 'v' for URL path, 'Api-Version' for header, 'api-version' for query)
urlPattern string No URL pattern for urlPath strategy (e.g., '/v{major}'). Only required for urlPath.
defaultBehavior string No (default "latest") Default behavior when no version is specified: 'latest' (default), 'specific', or 'requireExplicit'
strictMode boolean No (default false) If true, reject requests without explicit version identifier (default false)

undo_rating_fix

Take back an apply_rating_fix from its receipt. Fails without changing anything when the specification was edited since. Requires project context.

Required scope: specs:write

Parameter Type Required Description
specId string Yes Public ID (GUID) of the API specification
receipt string Yes The receipt apply_rating_fix returned, as JSON