Skip to main content
Glama

apply_plan

Apply an ExperimentPlan to your project by specifying inline changes or a plan file, updating only cq.yaml.configs with full provenance tracking.

Instructions

Apply ExperimentPlan to project (modifies cq.yaml.configs only — never train.py). Provenance recorded under .pcq/plans/<plan_id>.json. Returns rejected envelope with reason='schema_invalid'|'validation_failed' on bad input.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNo.
planNoInline ExperimentPlan dict. Minimal example: { "schema_version": 1, "id": "exp-001", "intent": "try larger lr", "base": {"baseline": "gen0"}, "parent_run_id": "run_...", "parent_run_path": "/abs/path/output_gen0", "changes": [ {"op": "set_config", "key": "lr", "value": 0.01} ] } Required: id (non-empty string), changes (non-empty list of {op: 'set_config', key: <str>, value: <any>}). Optional: intent, base, target, parent_run_id, parent_run_path, validation_policy.
plan_fileNoPath to ExperimentPlan JSON file
Behavior4/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 discloses scope of modification (configs only, never train.py), provenance recording, and error envelope behavior. It does not mention whether the operation is reversible or what happens on success, but it provides significant behavioral context.

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?

Three sentences, each serving a distinct purpose: what the tool does (modify cq.yaml.configs), side effect (provenance recording), and return behavior (error envelope). No wasted words, front-loaded with purpose.

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?

The description covers key aspects: scope, provenance, error handling. However, it does not describe success return value or behavior, which would be helpful given no output schema. It also lacks differentiation from sibling apply_planset. Still, it's largely complete for a tool with this complexity.

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 67% (plan and plan_file have descriptions; path has none). The description adds no extra semantics for path or plan_file beyond the schema. For plan, the schema already includes a detailed example; the description's mention of error envelope adds slight context. Overall, baseline 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 explicitly states the tool applies an ExperimentPlan to a project and specifies it modifies only cq.yaml.configs, never train.py. This clearly differentiates it from siblings like apply_planset or run_experiment.

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 mentions provenance recording and error returns but does not provide explicit when-to-use or when-not-to-use guidance relative to siblings like apply_planset. Context is implied but not directed.

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/playidea-lab/pcq'

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