Skip to main content
Glama

Plan the guards

plan_guards
Read-onlyIdempotent

The few guards that address the most rules for these AI features and markets, ranked: each guard in one sentence (a guard is a change to make in the application's code or settings, such as a notice, a check or a human review step), how many rules it addresses by lane, where binding law on it applies, and up to three example rule ids. A rule whose own fix narrows or replaces the guard is marked (overrides_guard, with its own fix) and named in rules_with_own_fix: the guard's sentence is not that rule's fix.

When to use: someone asks what to build first, or how to cover several markets at once. Ranked by the markets with binding law in force, then law coming, then rules addressed. Leave out features or markets to rank over all of them. Returns at most 5 guards; pass an example rule_id to explain_rule for detail. Limits: informational data, not legal advice.

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": "plan_guards"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoHow many results to return, 1 to 5 (default 5); `total` in the answer says how many matched.
featuresNoThe AI feature's integration patterns, any of: chat, rag, agentic, decision_pipeline (a model output that decides about a person), content_generation, classification, recommendation, embeddings. Omit it for every pattern.
jurisdictionsNoMarkets to cover, as codes: EU, a country code (GB, CN, KR, JP, BR, SG) or a US state as US-XX (US-CA, US-CO, US-NY); US matches every state. Omit it for every market.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / features / description
      Added value: +"The AI feature's integration patterns, any of: chat, rag, agentic, decision_pipeline (a model output that decides about a person), content_generation, classification, recommendation, embeddings. Omit it for every pattern."
    • addedInput schema / properties / jurisdictions / description
      Added value: +"Markets to cover, as codes: EU, a country code (GB, CN, KR, JP, BR, SG) or a US state as US-XX (US-CA, US-CO, US-NY); US matches every state. Omit it for every market."
    • addedInput schema / properties / limit / description
      Added value: +"How many results to return, 1 to 5 (default 5); `total` in the answer says how many matched."
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, and the description still adds substantial behavior: a ranking order (binding law in force, then coming law, then rules addressed), a hard cap of 5 results, the meaning of the `overrides_guard` marker and `rules_with_own_fix` field, and a 'not legal advice' disclaimer. This is output-shape disclosure that the annotations cannot supply.

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?

The description is well sectioned with front-loaded output shape followed by 'When to use' and 'Limits' labels, so an agent can scan it quickly. The opening sentence is a dense run-on with nested parentheticals and could be split, which costs it the top score.

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?

There is no output schema, so the description must carry the return shape, and it does: per-guard sentence, rules addressed by lane, applicable binding law, up to three example rule ids, plus the override marker and its companion field. Nothing an agent needs to call this correctly or interpret the response is missing.

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 the schema already documents the limit range, the accepted feature patterns, and the jurisdiction code formats, so the description is not required to carry parameter meaning. It adds only the default-behavior note ('leave out features or markets to rank over all of them'), which largely restates the schema's 'omit it for every ...' text. Baseline 3 is appropriate.

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 states a concrete verb+resource ('guards that address the most rules ... ranked') and defines what a guard is (a change to application code or settings: notice, check, human review step). It also distinguishes itself from the sibling by directing detail requests to explain_rule, so an agent can pick between them without opening a schema.

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?

There is an explicit 'When to use' section naming two concrete triggers (what to build first, covering several markets at once), an explicit default behavior (omit features/markets to rank over all of them), and a named alternative ('pass an example rule_id to explain_rule for detail'). Both when-to-use and when-to-go-elsewhere are covered.

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