Skip to main content
Glama

get_contract

Fetch the immutable scoring contract before starting a run. It specifies goal, metric, gate, target, and budget to guide your work and prevent rule violations.

Instructions

Read the immutable scoring contract before doing worker work.

    Call this before join_run and reread it whenever the metric, gate, target, or budget is
    unclear. Treat every returned contract field as law for the life of the run.

    Returns: {"goal", "domain", "metric", "maximize", "baseline", "target", "gate",
    "budget", "descriptors", "feasibility", "plateau_n"}, or the standard error dict.

    Mistake to avoid: never infer or rewrite the metric, gate, target, or budget.
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
run_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

No annotations are provided, so the description carries the full burden. It states it is a read operation, the contract is immutable, and lists the exact return fields plus the error dict. This gives the agent a clear behavioral model.

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?

The description is well-structured: a lead sentence, usage instruction, return list, and a mistake to avoid. No wasted words.

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?

Given the tool's simplicity and the explicit return fields, the description is complete. It also provides error handling and lifecycle guidance, making it sufficient for selection and invocation.

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 schema has 0% description coverage and the description does not mention run_id explicitly. While the context of 'run' implies run_id is the run identifier, this is not stated, so it fails to fully compensate for the low coverage.

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 a specific verb 'Read' and identifies the resource as 'the immutable scoring contract'. It clearly distinguishes from sibling tools like join_run by specifying this must be called before join_run.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly says 'Call this before join_run' and to reread whenever the metric, gate, target, or budget is unclear. This provides clear when-to-use guidance and even a caution against inferring or rewriting fields.

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/RightNow-AI/autoevolve'

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