Skip to main content
Glama

Refine a 2ools project

refine_project
Idempotent

Create a protected child version from a saved base and review feedback, returning an async job ID for the revision.

Instructions

Create one protected child version from a saved base version and concrete review feedback. Preserves the base source as currentCode, consumes one persisted project iteration, and returns an asynchronous job_id.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelNoGeneration engine for this child revision. Studio safely preserves the parent but cannot apply substantive edits; choose an AI model or linked Engine for real revisions.studio
feedbackYesSpecific requested changes. Requirements not explicitly changed remain in force.
project_idYesProject containing the saved base version.
base_version_idYesAuthoritative saved version to use as the parent and current source.
idempotency_keyYesUnique retry key. Reuse returns the original revision job without consuming another iteration.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already indicate idempotent, non-destructive, and open-world behavior. The description adds valuable context: 'consumes one persisted project iteration', 'preserves the base source as currentCode', and 'returns an asynchronous job_id'. This goes beyond the annotations without contradicting them.

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?

Two sentences, front-loaded with the core purpose, and no extraneous words. Every sentence contributes essential information about the action, constraints, and return type.

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 explains the key outcome (protected child version, job_id) and an important constraint (consumes iteration). However, it does not cover how to poll the async job, error conditions, or the effect of the 'model' parameter beyond the schema. Still, for a tool with well-documented schema and annotations, this is largely sufficient.

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 coverage is 100% with detailed descriptions for each parameter. The description does not add new semantic meaning beyond what the schema provides, meeting the baseline but not exceeding it.

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 creates a 'protected child version' from a 'saved base version' and 'concrete review feedback', with specific verbs and resources. It also distinguishes itself from siblings like 'build_from_conversation' by mentioning persistence of base source and consumption of an iteration.

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?

No guidance is provided on when to use this tool versus alternatives such as 'build_from_conversation' or 'continue_project'. The description does not mention prerequisites, exclusions, or scenarios where this tool is inappropriate, leaving the agent to infer usage context.

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