Skip to main content
Glama

audit_api_contract

Read-only

Audit live API endpoints by running adversarial queries to verify responses match expected shape schemas and catch shape-valid but wrong outputs.

Instructions

Run adversarial queries against a live endpoint and return per-query verdict (shape-valid / shape-invalid / confident-wrong / uncertain) vs an expected shape schema + per-query expectations. Catches responses that are shape-valid but wrong.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queriesYes
endpoint_urlYes
expected_shape_schemaYes
Behavior4/5

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

Annotations declare readOnlyHint=true, openWorldHint=true, destructiveHint=false, and the description does not contradict them. It adds valuable behavioral context: the tool runs adversarial queries, returns specific verdicts, and catches shape-valid but wrong responses. This enhances transparency 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise (two sentences) and front-loaded with the core action. However, it could be more structured by briefly covering key parameters or output, but overall it is efficient without waste.

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

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complex schema (nested objects) and no output schema, the description is incomplete. It does not explain the verdict meanings, how to interpret results, or provide any error-handling context. Missing details about expected_shape_schema structure or query limits.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 0% description coverage, and the description does not explain the parameters (endpoint_url, queries, expected_shape_schema) beyond a high-level mention. The complex nested objects (queries array, expected_shape_schema) lack any textual guidance on their structure or usage.

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 is specific: it states the tool runs adversarial queries against a live endpoint and returns per-query verdicts (shape-valid, shape-invalid, confident-wrong, uncertain). It clearly distinguishes from siblings by focusing on catching shape-valid but wrong responses, a unique capability.

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 implicitly suggests using the tool for adversarial API testing but provides no explicit guidance on when to choose this tool over alternatives like audit_contract or audit_parity. No exclusions or context are given.

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