Skip to main content
Glama

Legal Check

legal_check
Read-onlyIdempotent

Audit legal pages after rendering to list blockers for publishing: unresolved placeholders, unrendered blocks, and missing languages. Use offline before legal_verify.

Instructions

List what still blocks publishing the legal pages: placeholders, unrendered blocks, missing languages.

Use when: after legal_render, offline. For checking the live pages use legal_verify. Returns: {ok, problems: [...]}.

Input Schema

NameRequiredDescriptionDefault
app_dirYesAbsolute path to the app project directory (contains app.spec.json), e.g. /Users/me/Apps/MyApp.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.5
    • addedInput schema / properties / app_dir / description
      Added value: +"Absolute path to the app project directory (contains app.spec.json), e.g. /Users/me/Apps/MyApp."
  2. First observedv0.1.1

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety is covered. The description adds genuinely new context beyond them: the check is offline/static rather than against live pages, and it sketches the return shape ({ok, problems}). It stops short of describing pagination or problem-entry detail, which the output schema presumably carries.

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?

Three terse lines, front-loaded with the outcome ('what still blocks publishing'), followed by usage and return shape. No filler sentences.

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?

With annotations covering the safety profile, a full schema description, and an output schema, the description only needs to add routing and behavioral context — which it does. Nothing an agent needs to invoke this correctly 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?

Only one parameter, app_dir, and schema description coverage is 100% with an example path given in the schema itself. The description adds no syntax or format information 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 (list) and resource (blockers for publishing legal pages), then enumerates the concrete problem classes it reports: placeholders, unrendered blocks, missing languages. That specificity lets an agent distinguish it from the sibling legal_verify and legal_render without opening schemas.

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?

Explicitly names the trigger condition ('after legal_render, offline') and routes the agent to the alternative for the other case ('For checking the live pages use legal_verify'). Both the when and the when-not are covered.

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

Deploy Server

Other Tools