Skip to main content
Glama

govern_inference

Quality-govern an in-progress AI generation step BEFORE its output is used (complements validate, which checks finished documents). Returns an action - STOP, CONTINUE, REPAIR_REGION, REUSE_MOTIF, REVIEW, ESCALATE - with a plain-language explanation. Durably recorded; retrieve later with get_inference_trace.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sourceNoFree-form caller label recorded for auditmcp
api_keyYesGeodesicAI API key (gai_...)
payloadYesTask-type payload: generative_text {text,...}; retrieval {query,candidates}; generic {features}
task_typeYesKind of generation step being governed
step_indexNoStep number within this generation (0-based)
constraintsNoOptional governance constraint config object
inference_idYesCaller-chosen ID grouping the steps of one generation

TDQS

A4/5.0
Behavior3/5

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

With all annotations false, the description carries the full burden. It discloses that decisions are 'durably recorded' and that an action with explanation is returned. However, it does not clarify whether the tool actively modifies or stops the generation or merely returns a recommendation for the caller to act on. The side-effect profile beyond recording is ambiguous.

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

Conciseness5/5

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

Two sentences, front-loaded with purpose and timing, then return values and persistence. Every sentence earns its place with zero filler.

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

Completeness4/5

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

The tool has 7 parameters, nested objects, and no output schema. The description covers purpose, timing, return values, and persistence, which is sufficient for basic invocation. It does not detail the explanation format or error behavior, but given the tight prose, it is largely complete.

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 description coverage is 100% and every parameter has a description. The tool description adds no parameter-specific meaning beyond the schema, so the baseline of 3 applies. It does not clarify how parameters like payload map to the listed actions, but the schema already covers syntax.

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?

The description clearly states the tool's function: 'Quality-govern an in-progress AI generation step BEFORE its output is used.' It uses a specific verb and resource, and distinguishes from the sibling tool validate by contrasting in-progress vs finished documents. The list of returned actions (STOP, CONTINUE, etc.) further clarifies the scope.

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

Usage Guidelines4/5

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

The description explicitly mentions that it 'complements validate, which checks finished documents,' giving a clear when-to-use criterion. It also points to get_inference_trace for later retrieval, implying a usage flow. However, it does not enumerate other alternative tools like repair or reject_rule, so it lacks explicit exclusions.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

TDQS

A3.6/5.0
Disambiguation3/5

Most tools have distinct purposes, but several pairs overlap heavily (validate vs validate_repair, repair vs repair_path, analyze_anomaly vs check_drift vs decompose_failure). Detailed descriptions help disambiguate, but the large number of analytics and diagnostics tools creates real selection risk.

Naming Consistency4/5

The vast majority use a consistent snake_case verb_noun pattern (create_blueprint, list_api_keys, verify_certificate). A few single-word or noun-phrase exceptions (validate, forecast, structural_types, recent_inference_decisions) are minor deviations, but overall the pattern is predictable.

Tool Count2/5

At 37 tools, this exceeds the 25+ threshold for 'too many'. While the governance domain is broad, the set could be consolidated (e.g., merging validate_repair into validate, folding repair_path into repair, or trimming diagnostics-tier tools like check_realization and geometric_confidence).

Completeness4/5

The surface covers the full blueprint lifecycle, validation, repair, API key management, discovery, inference governance, and chain management. Minor gaps exist: no direct get_blueprint (only list with counts), and chain lifecycle lacks delete/list/cancel operations. Overall, agents can accomplish core governance tasks without dead ends.

Resources