Skip to main content
Glama

Check Agent State Portability

evaluate_agent_state_contract
Read-onlyIdempotent

Validates a private agent-state contract plus caller-supplied probe observations and returns deterministic health and drift results. The contract declares one canonical guidance source, one private canonical memory source, runtime overlays, portability, provider, requirement and scope classifications, parity probes, a portable-only sync policy and a bootstrap policy. Side-effect-free: reads no files, environment variables, credentials, sessions, network resources or database rows and stores nothing. [Anonymous-callable]

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "contract": "<contract>",
      "observations": "<observations>"
    },
    "name": "evaluate_agent_state_contract"
  }
}

Input Schema

NameRequiredDescriptionDefault
contractYes
observationsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, closed-world and non-destructive, so the bar is lower; the description still adds real context by enumerating what is NOT touched (files, env vars, credentials, sessions, network, DB rows), stating nothing is stored, that results are deterministic, and that it is anonymously callable. What it omits is the shape/severity model of the returned health and drift results.

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 defining sentence, then a scoping sentence and a safety sentence; nothing is padding given the 0% schema coverage. The long enumeration of contract fields and the negative resource list are dense but each earns its place for a schema this opaque.

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

Completeness3/5

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

For a tool with a 200-item-maximum nested contract, oneOf probes, and no output schema, the description should describe what 'health and drift results' actually contain. It covers input structure at a high level and safety fully, but leaves the return contract and the observations vocabulary unexplained.

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 0% on a deeply nested two-parameter object, so the description must carry the load; it does enumerate the contract's constituent parts (canonical sources, overlays, classifications, probes, sync and bootstrap policies), which helps orient an agent in the schema. However it never explains the contract↔observations linkage (probeId/state semantics, present vs mismatch vs unsupported) or the fingerprint matching rule, leaving key meaning unstated.

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

Purpose4/5

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

Names a specific verb ('Validates') plus two concrete inputs (contract and caller-supplied probe observations) and the outcome class (deterministic health and drift results). It is clearly distinguishable from siblings like compare_agent_setups or check_adopted_updates by resource, though it never explicitly contrasts itself with any of them.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: an agent can infer this is the validation entry point for a state contract, and '[Anonymous-callable]' signals no auth is needed. There is no when-to-use/when-not guidance, no prerequisites for constructing the contract, and no pointer to an alternative tool for related comparisons.

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.

Resources