Skip to main content
Glama
Metrx MCP Server

Metrx MCP Server

by metrxbots

Get Job Contract

metrx_get_job_contract
Read-onlyIdempotent

Read an agent's job contract: its current version per workload (objective, unit of work, acceptance criteria, KPI target, budget, owner, human baseline, and the vendor terms: vendor, billable unit, and the vendor's own definition of…

Instructions

Read an agent's job contract: its current version per workload (objective, unit of work, acceptance criteria, KPI target, budget, owner, human baseline, and the vendor terms: vendor, billable unit, and the vendor's own definition of resolved, which is labelled "the vendor's definition, not verified") and the full append-only version history. An agent with no contract returns an explicit empty state with the next action. Read-only. Requires an API key with the 'read' scope.

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": {
      "agent_key": "<agent_key>"
    },
    "name": "metrx_get_job_contract"
  }
}

Input Schema

NameRequiredDescriptionDefault
agent_keyYesThe agent_key (the X-Agent-ID string), not the UUID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.5.0

TDQS

A3.9/5.0
Behavior5/5

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

Annotations already cover read-only/idempotent/non-destructive, yet the description adds real context beyond them: the auth requirement (API key with 'read' scope), the empty-state contract with a next action, the append-only nature of history, and a provenance caveat that the vendor's definition of resolved is unverified. These are exactly the behavioral details an agent needs and cannot get from the structured fields.

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?

Front-loaded with the core action, followed by a dense but purposeful field enumeration and short sentences on empty state, read-only status, and auth. The long parenthetical is heavy but every listed item is informative; nothing is padding.

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

Completeness4/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 return shape, which it does by enumerating fields, the version history, and the empty state. The only minor gap is that it does not indicate how the full history is returned or bounded (ordering/pagination).

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, and the schema already documents it at 100% coverage including the critical "agent_key, not the UUID" disambiguation. The description adds no additional parameter meaning, so the baseline 3 for full schema coverage applies.

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?

Opens with a specific verb+resource ("Read an agent's job contract") and enumerates exactly what is returned: current version per workload with named fields plus the full append-only version history. It is clearly a read operation, distinct from the set/draft siblings, though no sibling is named explicitly, so it falls just short of the top bar.

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?

Usage context is implied rather than stated: it tells you the read scope is required and that an agent with no contract returns an explicit empty state with the next action, which helps an agent interpret the result. There is no explicit when-to-use/when-not guidance or routing to alternatives such as the draft/set contract tools or the broader agent-detail tool.

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