Skip to main content
Glama

apply_plan

Apply an ExperimentPlan to modify project configuration files. Records provenance and validates input, returning error details for invalid or failed plans.

Instructions

Apply ExperimentPlan to project (modifies cq.yaml.configs only — never train.py). Provenance recorded under .pcq/plans/.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?

With no annotations, the description fully bears transparency. It discloses that the tool modifies only cq.yaml.configs, records provenance under .pcq/plans/, and returns rejected envelopes with specific reasons on invalid input. This covers core behavioral traits, though it omits information about idempotency or whether the operation is reversible.

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 extremely concise—two sentences covering action, scope, provenance, and error behavior. Every sentence adds value without redundancy or extraneous detail.

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?

Given the tool's complexity (nested object, no output schema), the description covers action and error responses but lacks success output details, prerequisites (e.g., project must exist), and integration with sibling tools like init_experiment. It is minimally complete but leaves gaps for an agent.

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?

Schema coverage is 67% (path parameter lacks description). The tool description does not clarify the 'path' parameter's purpose or format, nor does it add semantic information beyond the schema's detailed 'plan' parameter description. The description's mention of error responses does not compensate for missing parameter guidance.

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 applies an ExperimentPlan to a project, specifies the scope (modifies cq.yaml.configs only, never train.py), and distinguishes the action from generic 'plan' operations. The verb 'apply' combined with the resource 'ExperimentPlan' and the boundary 'never train.py' provides precise purpose, though it doesn't explicitly differentiate from the sibling 'apply_planset'.

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?

The description offers no explicit guidance on when to use this tool versus alternatives like apply_planset, run_experiment, or validate_project. It implies usage for single plan application but lacks exclusion criteria or context about prerequisites (e.g., project must be initialized).

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