Skip to main content
Glama

Entalpa Requirements MCP

Projects Undo

projects_undo

Undo the last project change. With the accept_token a suggestions_accept returned, undo that accept only: refused if the project changed after it.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "project_id": "<project_id>"
    },
    "name": "projects_undo"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idYesProject UUID (database id).
accept_tokenNoThe accept_token of a suggestions_accept result: undo that accept only, and refuse if the project changed after it.

Output Schema

NameRequiredDescriptionDefault
titleYesProject title (1-255 characters).
can_redoYesTrue if a redo operation is available.
can_undoYesTrue if an undo operation is available.
chosen_llmNoThe name of the LLM model chosen for the project (e.g. CLAUDE_4_5_SONNET).
created_atNoProject creation timestamp (ISO 8601).
project_idYesProject UUID (database id).
usage_costNoAccumulated usage cost as a decimal string.
stories_countYesNumber of stories in the project.
messages_countYesNumber of messages in the project history.
acceptance_styleNoHow acceptance criteria are written: free text, gherkin (Given/When/Then, one step per line, scenarios separated by a blank line) or ears (one per line: When <trigger>, the <system> shall <response>). AI actions write new criteria in it and leave existing ones as they are; write content.acceptance in it too.
design_descriptionNoProject description or design notes.
requirements_countYesNumber of requirements in the project.
extra_requirement_fieldsNoList of extra requirement fields.
interface_contracts_countYesNumber of interface contracts in the project.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / acceptance_style
      Added value: +{
      +  "description": "How acceptance criteria are written: free text, gherkin (Given/When/Then, one step per line, scenarios separated by a blank line) or ears (one per line: When <trigger>, the <system> shall <response>). AI actions write new criteria in it and leave existing ones as they are; write content.acceptance in it too.",
      +  "enum": [
      +    "free",
      +    "gherkin",
      +    "ears"
      +  ],
      +  "type": "string"
      +}
  2. Changed2 schema fields changed
    • changedInput schema / description
      Previous value: -"Parameters that identify a project."New value: +"Parameters that identify a project, and optionally the accept to undo."
    • addedInput schema / properties / accept_token
      Added value: +{
      +  "description": "The accept_token of a suggestions_accept result: undo that accept only, and refuse if the project changed after it.",
      +  "type": "string"
      +}
  3. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, so the safety profile is partly carried by structured data. The description adds real behavioral context beyond that: the token is scoped to a single accept, and the operation is refused if the project changed afterward, which tells the agent to expect a stale-state failure. It does not say whether an undo is itself reversible or what 'last change' means across concurrent edits.

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 short sentences, no filler. The default behavior is front-loaded and the token variant follows immediately, matching the order in which an agent would need the information.

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?

An output schema exists, so return values need no explanation, and the mutation semantics plus the refusal condition are covered. What remains unstated is the scope of 'last project change' (per user, per project, per session) and the error surface when no undoable change exists. Minor but real gaps for a state-reverting tool.

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% and the schema description already states the accept_token scoping and refusal rule almost verbatim, so the description adds little beyond it. The one genuine increment is attributing the token's origin to suggestions_accept, which helps the agent know where to obtain it. With the schema doing the heavy lifting, the baseline 3 applies.

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?

The description pairs a specific verb ('Undo') with a specific resource ('the last project change') and adds a second, distinctly scoped mode ('undo that accept only'). An agent can tell this is a revert operation, not a generation or patch tool. It stops short of a 5 because it never contrasts itself with the closest sibling, projects_patch, which an agent might otherwise reach for to reverse a change.

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

Usage Guidelines4/5

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

It gives two concrete usage modes: omit accept_token to undo the most recent change, or pass the token returned by suggestions_accept to undo just that accept. The refusal precondition ('refused if the project changed after it') is an explicit when-not condition. It lacks guidance on what to do when the token is stale or when no prior change exists, so it is clear but not exhaustive.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources