Skip to main content
Glama

Kiescy

Analyze a document

analyze_document
Read-only

Checks a saved document, or any text you pass, for missing topics (for the business's jurisdictions), outdated clauses, duplicate paragraphs and unconfirmed significant answers. Findings cite the legal basis when they're requirements; others are suggestions.

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": {
      "type": "<type>"
    },
    "name": "analyze_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNoAnalyze this text instead of the saved document
typeYes

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 only declare readOnlyHint=true, and the description is consistent with a pure read/analysis operation. Beyond that it discloses meaningful output semantics: findings are classified as requirements (with a cited legal basis) versus suggestions, which is context the annotation does not carry. It still omits any statement about response shape, severity ordering, or latency for large inputs.

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 tight sentences with the input modes front-loaded and the finding taxonomy following. No filler, though the parenthetical '(for the business's jurisdictions)' is slightly awkwardly embedded and the first sentence is dense with four enumerated categories.

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?

With no output schema, the description carries the burden of explaining returns, and it only partly does so by describing finding types and the requirement/suggestion split. It never clarifies which saved document is analyzed when 'text' is omitted, nor what role the required 'type' plays in that mode — a real gap for a 2-parameter tool with a required discriminator.

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 coverage is 50%: 'text' is documented in the schema, while 'type' has no schema description but carries a self-explanatory enum of document kinds. The description adds the meaning that passing text overrides analyzing the saved document, which is a genuine clarification, but it says nothing about how 'type' interacts with the saved-document mode. Baseline 3 fits.

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?

States a specific verb ('Checks') and resource ('a saved document, or any text you pass') and enumerates the exact finding categories: missing topics, outdated clauses, duplicate paragraphs, unconfirmed significant answers. It is not differentiated from siblings such as check_documents, which plausibly performs a similar audit, so it falls short of a 5.

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?

The description clarifies the two input modes — analyze the saved document or arbitrary supplied text — which is useful usage context. However, it gives no when-not guidance and never names an alternative tool or when to prefer check_documents or get_document over this one.

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