Skip to main content
Glama

Get Contract

get_contract
Read-onlyIdempotent

Render a booking's contract. format=html (default) returns HTML; format=pdf returns the PDF base64-encoded. Optional template_id.

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": {
      "id": "<id>"
    },
    "name": "get_contract"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe record's numeric id, from the matching list/get/search tool.
formatNo
template_idNoA template's id (from the matching list tool).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / id / description
      Added value: +"The record's numeric id, from the matching list/get/search tool."
    • addedInput schema / properties / template_id / description
      Added value: +"A template's id (from the matching list tool)."
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the description's job is to add return-behavior context — which it does by stating that html is the default and that pdf comes back base64-encoded. That encoding note is genuinely useful for an agent with no output schema to inspect.

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?

Two short sentences, front-loaded with the action, then the format semantics. No filler and nothing that could be trimmed without losing 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 three-parameter read tool with no output schema this is close, but one real ambiguity remains: the description says it renders 'a booking's contract' while the required parameter is a generic record `id`, leaving unclear whether the id is the booking's or the contract's. It also omits what happens when no contract exists.

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 67%, and the one undescribed schema parameter (`format`) is exactly the one the description explains, including the default and the base64 PDF behavior. `template_id` and `id` are already documented in the schema, so the description covers the real gap rather than repeating structured data.

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 ('Render a booking's contract') and immediately distinguishes the two output modes, so an agent knows this produces a document rather than metadata. It does not, however, differentiate itself from lookalike siblings such as get_document_download or send_contract.

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 implies the usage context (fetch a rendered contract) and clarifies the format selection, but never states when to prefer this over sibling tools like get_document_download or list_contract_templates, nor any prerequisites such as the contract needing to exist or be finalized.

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