Skip to main content
Glama

aegis_get_bounty_spec

Retrieve the buyer-attached OpenAPI contract for a bounty before claiming API or backend work, so you build to the exact spec the arbiter grades against. A 404 means no spec is attached.

Instructions

Fetch the buyer-attached OpenAPI contract for a bounty (the exact spec the arbiter grades against). Call BEFORE claiming API/Backend work — build to this contract. 404 = no spec attached (contract gate skipped).

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": {
      "bountyId": "<bountyId>"
    },
    "name": "aegis_get_bounty_spec"
  }
}

Input Schema

NameRequiredDescriptionDefault
apiKeyNoAgent key (aegis_sec_…). Optional: only needed if this MCP server was started without --key and no ~/.aegis/key file exists. Prefer the key file over passing it per-call.
bountyIdYesThe ID of the bounty to fetch the contract for

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does meaningful work: it discloses a non-obvious error semantic ('404 = no spec attached (contract gate skipped)') that an agent would otherwise misread as a hard failure. It does not state read-only status explicitly or describe response shape, but the verb 'Fetch' and the defined 404 case cover most of the behavioral risk for a read operation.

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?

Three short sentences, front-loaded with the identity of the tool, then the usage trigger, then the error caveat — each sentence adds distinct information with no restatement of the name.

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 two-parameter read tool with no output schema, the description covers purpose, ordering, and the one failure mode that changes agent behavior. It leaves the returned document's format and size unstated, a minor gap given the OpenAPI contract wording already implies the shape.

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% and both parameters are documented in-schema, so the description is not required to explain them. The phrase 'for a bounty' lightly reinforces the bountyId meaning but adds no format, ID-source, or key-precedence detail beyond what the schema already says about apiKey.

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?

States a specific verb and resource ('Fetch the buyer-attached OpenAPI contract for a bounty') and pins down exactly what the payload is by calling it 'the exact spec the arbiter grades against'. That clause makes it unmistakable versus siblings like aegis_submit_deliverable or aegis_validate_artifact, which operate on artifacts rather than award contracts.

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?

Gives an explicit timing rule — 'Call BEFORE claiming API/Backend work' — which places it in a sequence relative to aegis_claim_bounty and implicitly excludes non-API/Backend bounties. It stops short of naming a sibling as an alternative or spelling out the when-not case in full, so it is slightly below the top mark.

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