Impact GateDocs

Reference

MCP tools reference

Parameters and examples for the six read-only tools exposed by the Impact Gate MCP server.

On this page

Conventions#

All six tools are read-only (readOnlyHint: true, destructiveHint: false) and return tenant-scoped evidence. Identifiers such as workspaceId, apiId, functionId, and findingId come from earlier tool results or from your Impact Gate dashboard; repositoryFullName is the GitHub form owner/repository.

Every result carries an evidence envelope: a requestId, a generatedAt timestamp, and a source object with the workspaceId, snapshotId, indexedAt time, and the indexed repositories with their exact commits. Use these to judge freshness before acting on an answer.

Result envelope (excerpt)
{
  "schemaVersion": 1,
  "requestId": "req_8acbcfb7-1b7b-4ac1-8032-0bdc03b98094",
  "generatedAt": "2026-10-16T20:09:46.425Z",
  "source": {
    "workspaceId": "3fb27312-fc17-42c2-a71c-52b31af510fd",
    "snapshotId": "3fb27312-fc17-42c2-a71c-52b31af510fd:689",
    "indexedAt": "2026-10-15T05:57:24.206Z",
    "indexedRepositories": [
      { "fullName": "impact-gate/ig-lab-catalog-api", "sha": "ad3dfeb7e6ced1f70164a09c8fac927593aec793", "status": "indexed" }
    ]
  }
}

impactgate_workspace_status#

Returns the authorized workspace and indexed repository status. A good first call after connecting, and the way to get workspaceId values for the other tools.

ParameterTypeNotes
workspaceIdstringOptional. Selects the workspace directly.
repositoryFullNamestringOptional. Selects the workspace by an indexed repository, e.g. acme/catalog-api.
remoteUrlstring (uri)Optional. Selects the workspace by a repository remote URL.
Example arguments
{
  "workspaceId": "3fb27312-fc17-42c2-a71c-52b31af510fd"
}

With no arguments and exactly one authorized workspace, the server uses it. With several, it returns the workspace selection error listing the choices.

impactgate_analyze_change#

Returns persisted deterministic impact findings for a bounded change: what a contract change in one repository does to the indexed consumers that call it.

ParameterTypeNotes
repositoryFullNamestringRequired. The API provider repository, owner/name.
workspaceIdstringOptional when the repository selects the workspace.
baseSha / headShastringThe commits to compare, e.g. from a pull request.
pullRequestNumberintegerOptional PR reference for the change.
changedFilesarrayOptional paths that bound the change.
diffstring (max 256 KB)Optional unified diff of the contract change.
baseSpec / headSpecobjectOptional OpenAPI documents at the two commits.
focusstringOptional narrowing hint, such as one endpoint or field.
Example arguments
{
  "repositoryFullName": "impact-gate/ig-lab-catalog-api",
  "baseSha": "ad3dfeb7e6ced1f70164a09c8fac927593aec793",
  "headSha": "9f3c1a2b4d5e6f708192a3b4c5d6e7f8091a2b3c",
  "focus": "GET /products/{id}"
}

impactgate_find_consumers#

Finds authorized static and runtime consumers of an API operation - which indexed applications call an endpoint or read a field, with source evidence.

ParameterTypeNotes
apiIdstringIdentifies the API, e.g. from workspace status or an earlier result.
endpointobjectOptional operation selector such as method and path.
fieldPathstringOptional field within the operation's contract.
repositoryFullName / workspaceIdstringOptional scoping to one repository or workspace.
includeUnresolvedbooleanInclude candidate consumers that could not be fully resolved.
Example arguments
{
  "workspaceId": "3fb27312-fc17-42c2-a71c-52b31af510fd",
  "endpoint": { "method": "GET", "path": "/products/{id}" },
  "includeUnresolved": true
}

impactgate_get_api_flow#

Returns the persisted provider flow for one API: the handler and function chain, partial boundaries, and the source evidence behind each step.

ParameterTypeNotes
apiIdstringRequired. Identifies the API.
workspaceIdstringOptional scoping.
includeExecutionTreebooleanInclude the execution tree detail.
includePathAnalysisbooleanInclude per-path analysis.

impactgate_get_function_usage#

Returns static API-attributed and measured function-entry usage separately - which functions participate in serving API traffic and who calls them.

ParameterTypeNotes
functionIdstringIdentifies the function, e.g. from an API flow result.
filePath / linestring / integerAlternative locator inside an indexed repository.
repositoryFullName / workspaceIdstringOptional scoping.
includeCallers / includeCalleesbooleanExpand the result in either direction.

impactgate_verify_fix#

Compares current persisted findings with a bounded proposed fix, without mutating anything - whether the change you are about to make clears the findings it is meant to address.

ParameterTypeNotes
repositoryFullNamestringRequired. The repository the fix applies to.
findingIdstringThe persisted finding to check, from an earlier analysis.
workspaceIdstringOptional scoping.
baseSha / headShastringCommits bounding the proposed fix.
changedFiles / diffarray / string (max 256 KB)The proposed change content.
baseSpec / headSpecobjectOptional OpenAPI documents before and after.

Explore the documentation

↑↓ NavigateEnter Open guideSearch stays in your browser