Skip to main content
Glama

contract_baseline

Manage API contract baselines to detect schema drift. Save, load, compare, list, or delete baselines to version-control API changes.

Instructions

消费者契约基线管理:保存当前 schema 为基线、加载基线、对比当前 schema 与基线检测漂移、列出所有基线、删除基线。配合 contract_guard 使用,可实现 API 变更版本化守护。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNo基线名称,默认 'default'。支持多套基线,如 'production'、'staging'、'v1.0' 等
actionNo操作类型:list=列出所有基线,save=保存当前 contracts 为基线,load=加载指定基线,compare=对比当前 contracts 与基线,delete=删除基线list
contractsNosave/compare 操作时传入的 contracts 列表(通常来自 contract_guard 的输出)
Behavior3/5

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

No annotations are provided, so the description must disclose behavioral traits. It lists the possible actions (save, load, etc.) but does not elaborate on side effects (e.g., overwriting behavior of save, irreversibility of delete) or authorization requirements. The description conveys basic operations but lacks depth.

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, using a single sentence to list all actions and context. It front-loads the purpose. However, it could be structured with bullet points for clarity, but remains efficient overall.

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?

The tool has multiple actions but no output schema, and the description fails to mention what each action returns (e.g., compare returns drift, list returns baselines). It also does not clarify that contracts parameter is only needed for save/compare, which could lead to misuse. Given the complexity, the description is incomplete.

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%, so the parameters are well-documented in the schema. The description adds no additional semantic meaning beyond what the schema provides (e.g., action enum values or contracts field usage). Baseline of 3 is appropriate.

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 clearly states the tool manages consumer contract baselines with specific actions (save, load, compare, list, delete) and mentions integration with contract_guard, distinguishing it from sibling tools like contract and contract_guard.

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?

The description indicates it should be used with contract_guard for API change versioning, providing context. However, it does not explicitly state when not to use it or provide alternatives, which is acceptable as no direct sibling exists for baseline management.

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/validpilot/ai-verify-mcp'

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