Skip to main content
Glama

Read contracts

swarm_get_contract
Read-onlyIdempotent

Read requirements before acting: work for execution and completion rules, answer for Space questions, operation for a named intelligence operation_kind. Creates no work or permission.

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": {
      "view": "<view>"
    },
    "name": "swarm_get_contract"
  }
}

Input Schema

NameRequiredDescriptionDefault
viewYesSelect one operation. answer: no required fields; operation: requires operation_kind; work: no required fields. Supply only fields applicable to that operation.
space_idNoSpace for Space-scoped views; omit if sole. ID-only views resolve access from the resource ID, not this convenience field.
operation_kindNoKind from swarm_inspect_space (view=capabilities); read its operation contract.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered. The description adds the useful assurance 'Creates no work or permission,' but that largely restates readOnlyHint and says nothing further about failure modes, missing contracts, or what the contract contains.

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?

A single compact statement with the imperative guidance front-loaded and the view mapping following. It is dense but every clause carries selection information; the only weakness is that the terse 'operation for a named intelligence operation_kind' reads slightly compressed.

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 annotations covering safety, an output schema covering return values, and 100% schema coverage on all three parameters, the description needs only to explain view selection and the pre-action usage pattern, which it does. Nothing essential to calling this tool correctly 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?

Schema description coverage is 100%, including the view enum semantics, space_id scoping, and operation_kind's provenance from swarm_inspect_space. The description reinforces which view is used for what but adds no syntax, format, or edge-case detail beyond the schema, so baseline 3 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?

The description gives a specific verb ('Read') plus the resource ('requirements'/'contracts') and enumerates the three selectable views (work, answer, operation), so an agent knows exactly what it returns. It does not, however, differentiate itself from the sibling per-view tools (swarm_get_work_contract, swarm_get_answer_contract, swarm_get_operation_contract), which is the obvious ambiguity an agent would face.

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?

'Read requirements before acting' gives a clear trigger condition, and the sentence maps each view to its purpose (execution/completion rules, Space questions, named operation kind). There is no explicit exclusion or statement of when to prefer the per-view siblings, so guidance is strong but not complete.

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.