Skip to main content
Glama

Draft Job Contract

metrx_draft_job_contract
Read-onlyIdempotent

Draft a job contract for an AI agent from a template (support_triage, sdr_qualification, internal_assistant, coding_patch): objective, unit of work, acceptance criteria, budget, the human baseline for ROI, and optional vendor terms (vendor_name, billable_unit, and the vendor's own definition of resolved, carried verbatim and labelled the vendor's definition, not verified). Returns the draft to publish plus validation errors and warnings. A pure function over your input: reads nothing, stores nothing, needs no key. Publishing the draft is a separate step (set_job_contract, 'admin' 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": {
      "template": "<template>",
      "owner": "<owner>"
    },
    "name": "metrx_draft_job_contract"
  }
}

Input Schema

NameRequiredDescriptionDefault
notesNo
ownerYesThe person accountable for this agent (name or email).
templateYesWhich job template to start from.
workloadNoDefaults to agent_key, else the template key.
agent_keyNoThe agent the contract will be published for (informational in the draft).
objectiveNo
budget_usdNo
vendor_nameNoWho you pay for the agent’s work (the AI vendor).
unit_of_workNoWhat one unit is, e.g. 'resolved ticket'.
billable_unitNoWhat the vendor bills per, in the vendor's words, e.g. 'resolution' or 'conversation'.
budget_periodNo
human_baselineNoWhat the same unit costs when a person does it; the ROI comparison needs it.
vendor_resolved_definitionNoThe vendor's own definition of "resolved", word for word. Kept unchanged and shown as the vendor's definition, not verified.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / billable_unit
      Added value: +{
      +  "description": "What the vendor bills per, in the vendor's words, e.g. 'resolution' or 'conversation'.",
      +  "maxLength": 100,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / vendor_name
      Added value: +{
      +  "description": "Who you pay for the agent’s work (the AI vendor).",
      +  "maxLength": 200,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / vendor_resolved_definition
      Added value: +{
      +  "description": "The vendor's own definition of \"resolved\", word for word. Kept unchanged and shown as the vendor's definition, not verified.",
      +  "maxLength": 2000,
      +  "minLength": 1,
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint=false and destructiveHint=false, and the description usefully adds why: 'a pure function over your input: reads nothing, stores nothing, needs no key' — information about auth requirements and side effects the annotations do not carry. It further discloses the provenance caveat that vendor_resolved_definition is carried verbatim and 'not verified', which is genuine behavioral nuance. Minor gap: nothing about how validation errors are raised or how strict they are.

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?

Dense but front-loaded: purpose and template list arrive first, then the return value, then the publish-is-separate caveat. Parenthetical lists are slightly heavy but each clause carries operational information; nothing is redundant.

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?

For a 13-parameter tool with a nested object and no output schema, the description states what comes back (draft plus validation errors and warnings) and that nothing is stored, which covers the key unknowns. It stops short of describing what triggers validation failures or how the draft relates to the sibling cost/bill tools, but an agent can invoke it correctly with what is given.

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 69%, so the description should add meaning and it does: it explains what the template seeds, frames human_baseline as the ROI comparison input, and clarifies vendor terms (vendor_name, billable_unit, vendor_resolved_definition) including that the vendor's 'resolved' definition is preserved unchanged. It leaves several params (notes, agent_key, budget_period, workload) to the schema, which documents them adequately.

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?

The description opens with a specific verb and resource ('Draft a job contract for an AI agent from a template'), enumerates the four valid templates, and lists the contract contents (objective, unit of work, acceptance criteria, budget, human baseline, optional vendor terms). It also explicitly separates drafting from the downstream 'set_job_contract' publish step, so an agent can tell it apart from a mutating/publishing action without opening any schema.

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?

Clear context is given: use this to produce a draft plus validation errors and warnings, and publishing is a separate step requiring 'admin' scope via set_job_contract. It does not address when to prefer the sibling tools (metrx_check_vendor_bill, metrx_cost_per_resolution, metrx_get_workforce_review), but the draft-vs-publish boundary is the main routing decision and it is stated unambiguously.

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.