Skip to main content
Glama

audit_contract

Read-only

Verifies wire contracts across multiple source files, detecting missing tokens, schema version drift, and ordering bugs. Returns a block or pass verdict.

Instructions

Verify a wire contract (token list / field set / schemaVersion) is identical across N independent source files (iOS Swift, proxy JS, Android Kotlin). Flags missing/inconsistent tokens, schemaVersion drift, and prefix-ordering bugs (a contained token matched before the longer one). BLOCK/PASS verdict.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathsYes
contract_specYes
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, indicating safe operation. The description adds valuable behavioral details: flags missing/inconsistent tokens, schemaVersion drift, prefix-ordering bugs, and outputs a 'BLOCK/PASS verdict', which enriches the agent's understanding beyond annotations.

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?

Two sentences: first defines purpose with verb+resource, second adds specifics and verdict. No redundant words, efficient and front-loaded. Perfect conciseness.

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?

Given no output schema, the description mentions the 'BLOCK/PASS verdict', which gives a basic idea of return. It sufficiently explains the tool's function and parameters. However, it lacks detail on the format of the verdict (e.g., if it includes specifics of failures). For a moderate-complexity tool with nested objects, it is mostly complete.

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 description coverage is 0%, so the description must compensate. It does by explaining that 'contract_spec' includes token list, field set, and schemaVersionPattern, and that 'file_paths' are source files. This adds meaning beyond the schema's raw field names, though it could be more explicit about parameter syntax.

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 uses specific verb 'verify' and clearly identifies the resource: wire contract across independent source files (iOS Swift, proxy JS, Android Kotlin). It also lists what it flags (missing tokens, schemaVersion drift, prefix-ordering bugs), distinguishing it from sibling audit tools like 'audit_api_contract' or 'audit_ios_a11y'.

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?

The description implies use case: when needing to verify wire contract consistency across platforms. However, it does not explicitly state when not to use it or mention alternative tools. The context is clear but lacks explicit guidance for selection.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rhinocap/raven-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server