Skip to main content
Glama

mcp_flag_parity

Read-only

Verifies that active agent profiles resolve MCP tool attachments correctly after changes, reporting per-profile errors and missing bindings so you can confirm wiring before relying on it.

Instructions

For every active agent profile in env, resolve its tool set the way the runtime does (pool_for_kind + AgentProfileLoader.load_active + resolve_mcp_tools_for_profile) and report what actually binds — the health check to run right after profile_mcp_attachments action=set, to confirm the wiring resolves rather than trusting the write succeeded. Same payload/logic as GET /admin/api/mcp-flag-parity. Degrades per-profile: one bad profile is reported with an error, never crashes the whole report. CAVEAT: an unreachable external MCP endpoint (e.g. a down partner sandbox) shows up as FEWER bound tools, not an error — the resolver swallows that failure so one flaky external MCP can't take down tool resolution for every profile. A low tool count on an external-source profile means "check the endpoint is reachable", not necessarily "the attachment is wrong".

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "mcp_flag_parity"
  }
}

Input Schema

NameRequiredDescriptionDefault
envNoConfig branch: which `environment` rows of the AI config DB to read/write. staging = the editable working set (default); prod = what production serves.staging

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The readOnlyHint annotation already establishes safety, but the description adds substantial context beyond it: per-profile degradation (one bad profile is reported with an error, never crashes the whole report) and the resolver's silent swallowing of unreachable external MCP endpoints. The only gap is that it does not describe the report's shape, though an output schema exists to cover that.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action and use case, and the caveat paragraph earns its space by preventing a real misdiagnosis. The parenthetical listing of internal function names (pool_for_kind, AgentProfileLoader.load_active, resolve_mcp_tools_for_profile) is implementation detail an agent cannot act on and slightly dilutes the opening.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

A read-only diagnostic with one optional enum parameter, full schema coverage, and an output schema carries everything an agent needs. The description closes the remaining gap that structured fields cannot express: failure modes, partial-failure behavior, and how to interpret unexpectedly low results.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the single `env` parameter is already documented down to the config-branch semantics of staging versus prod. The description references `env` only as the scope of the operation ('every active agent profile in `env`') and adds no format or selection detail beyond the schema, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource — resolve every active agent profile's tool set in `env` and report what actually binds — and identifies the concrete mechanism (pool_for_kind + AgentProfileLoader.load_active + resolve_mcp_tools_for_profile). An agent can tell this apart from a plain listing tool because the description makes explicit that it reports resolved bindings, not configured attachments.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit, actionable trigger: run it right after `profile_mcp_attachments action=set` to confirm the wiring resolves rather than trusting that the write succeeded. It also supplies the interpretive rule for results — a low tool count on an external-source profile means 'check the endpoint is reachable', not 'the attachment is wrong' — which functions as when-to-use guidance for a diagnostic.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.