Skip to main content
Glama

Get contract

get_contract
Read-only

Contract status, timeline, check-in, the worker's progress updates (on the way, progress notes, running late), expected_finish_at, and completion evidence with viewable photo URLs (valid ~15 minutes). Pass progress on to the person when they ask how it's going. Look at the photos before approving.

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

Input Schema

NameRequiredDescriptionDefault
contract_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare a safe, read-only, open-world read. The description adds the non-obvious caveat that photo URLs are valid for only ~15 minutes, which materially changes agent behavior (fetch or display promptly). It does not cover error behavior for an invalid or expired contract_id, so not a 5.

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 return payload is front-loaded in a single dense clause, followed by two short imperative instructions. Every sentence carries information, though the parenthetical field list is dense enough to slow scanning slightly.

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 no output schema, the description carries the burden of describing the response and does so field-by-field, plus an expiry caveat for the URLs. For a one-parameter read tool with safe annotations, nothing an agent needs to call it or interpret the result 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?

There is one required parameter, contract_id, and schema description coverage is 0% — only a regex pattern is supplied. The description never explains the ID's origin (where the agent obtains it) or format, so it does not compensate for the coverage gap. Mitigating factor: a lone contract_id on a get_contract tool is largely self-explanatory.

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?

Names the resource (contract) and enumerates exactly what the call returns: status, timeline, check-in, worker progress updates (on-the-way, notes, running late), expected_finish_at, and completion evidence photos. This is a specific read operation that an agent can distinguish from get_job or fund_contract on the content alone.

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

Usage Guidelines4/5

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

Provides two concrete usage rules: relay progress to the person asking how it's going, and inspect the photos before approving. The second implicitly routes the agent toward the approval flow (approve_completion), giving real context. No explicit when-not-to-use or statement of why get_job would be chosen instead, so it falls short of a 5.

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