Skip to main content
Glama

get_next_experiment

Retrieve the next experiment configuration for a research programme from the optimizer, including remaining budget and rejecting requests when budget is exhausted.

Instructions

Get the next experiment configuration from the optimizer role.

Reports remaining budget (commitment 5: budget is an epistemic resource). Enforcement: commitment 5 — rejects when budget is exhausted.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
programme_idYesID of the target research programme.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
next_configNo
programme_idNo
remaining_budgetNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.28

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose a meaningful failure mode (rejection on exhausted budget) and budget reporting behavior. It stops short of covering permissions, idempotency, or the nature of the configuration returned, so it is partial rather than complete.

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?

Three short lines, front-loaded with the core action. The repeated '(commitment 5)' parenthetical and 'Enforcement: commitment 5' are somewhat redundant, costing a little efficiency.

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

Completeness3/5

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

Output schema exists, so return values need not be described, and the single parameter is fully documented. Still missing is how this relates to sibling experiment tools and any explanation of the 'optimizer role'/'commitment 5' domain framing, which an agent must interpret unaided.

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% for the single programme_id parameter, so the baseline is 3. The description adds no syntax, format, or constraint detail beyond what the schema already documents.

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?

States a clear verb and resource ('Get the next experiment configuration') and adds the source ('from the optimizer role'). However, it does not distinguish itself from related siblings like design_experiment or get_incumbent, so an agent gets the purpose but not the boundary.

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

Usage Guidelines2/5

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

There is no explicit when-to-use guidance and no alternative tool is named for comparison. The only condition given is a failure precondition ('rejects when budget is exhausted'), which is behavioral rather than routing guidance.

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