Skip to main content
Glama

policy.simulate

Apply the schema to a scratch branch and prove tenant isolation: two users, an anonymous client, forged ownership, ownership transfer. Returns a token only when every check passes.

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": {
      "source": "<source>"
    },
    "name": "policy.simulate"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceYesSchema source

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

The description adds genuine behavior beyond the annotations: it mutates state by creating a scratch branch (consistent with readOnlyHint=false), runs a fixed five-check matrix, and returns a token only on a full pass. However, it does not say what happens on a failed check (error vs. partial report), whether the scratch branch is cleaned up, or what the token is used for. No annotation contradiction: 'apply' is consistent with readOnlyHint=false.

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?

Two sentences, front-loaded with the action and then the verification detail, with no filler. The colon-list is compressed almost to the point of being telegraphic, but every element (the check matrix, the token condition) carries information.

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 that provisions a scratch branch, runs a security matrix, and gates on a token, the definition covers the what and the pass condition but omits failure semantics, side effects/cleanup, and any hint about cost or latency. With no output schema, the return value beyond 'a token' is undocumented.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, and the description adds nothing about the 'source' parameter's format. However, the surrounding text does clarify the parameter's role: the schema source is what gets applied to a throwaway branch and exercised against the isolation matrix, which is more than the terse 'Schema source' schema description conveys.

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?

The description uses a concrete verb+resource framing ('Apply the schema to a scratch branch and prove tenant isolation') and enumerates the specific checks it runs (two users, anonymous client, forged ownership, ownership transfer). It is clear what the tool does, but it never names or distinguishes itself from the sibling policy.test, which plausibly overlaps.

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 only implied: the scratch-branch framing suggests a pre-deployment verification step, but there is no explicit statement of when to call it versus policy.test or schema.apply, and no prerequisites (e.g. does the caller need an existing branch or project context).

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