Skip to main content
Glama

analyze_contract

Analyze contracts for data protection compliance (LGPD/GDPR)

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": {
      "contractText": "<contractText>"
    },
    "name": "analyze_contract"
  }
}

Input Schema

NameRequiredDescriptionDefault
regulationsNoRegulations to check against
analysisTypeNoType of analysis
contractTextYesContract text to analyze

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and largely drops it. It does not say whether the analysis is read-only, whether contract text is stored or transmitted to third parties, whether there are length or token limits on the input, or how long a 'full' analysis takes — all material for a tool ingesting confidential contract text.

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?

A single short sentence that front-loads the verb and resource with no filler or repetition. It is efficient, though the brevity contributes to the gaps elsewhere rather than being purely a virtue.

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

Completeness2/5

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

With no output schema and no annotations, the description needs to explain what an analysis returns, and it does not. For a three-parameter analysis tool that takes confidential legal text and offers a 'full' mode, the definition leaves the agent unable to predict the response shape or the cost of the call.

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%, so the schema already documents all three parameters including the analysisType enum values, and the baseline of 3 applies. The mention of LGPD/GDPR hints at what the regulations array expects, but it adds no format, default, or precedence information beyond the schema.

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 and resource ('Analyze contracts') plus the domain of analysis ('data protection compliance (LGPD/GDPR)'), which is far more informative than the bare tool name. It does not distinguish this tool from plausible siblings such as assess_risk, check_compliance, or evaluate_project_compliance, so an agent cannot tell from the text alone which one applies to contract review.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no preconditions, and no named alternative for adjacent tasks like general compliance checks or risk assessment. Nothing tells the agent how to choose among the analysisType enum values (compliance vs risks vs full), which is the main decision the caller actually faces.

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