Skip to main content
Glama
Yan-Vi
by Yan-Vi

remove_state_var

Remove a named variable from a flow's scoped state to clean up or reset test data during execution.

Instructions

Remove a flow-scoped state variable.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
flowIdYes
projectNoPath to the project root (same folder the side panel connects to). Defaults to the EASYSPEC_PROJECT environment variable if omitted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.4

TDQS

C2.1/5.0
Behavior1/5

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

With no annotations, the description carries the full burden. It only states the action without explaining side effects, failure behavior (e.g., if the variable does not exist), or any impact on the flow.

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?

The description is a single, short sentence that is direct and free of unnecessary wording. It is appropriately concise for the simple action it describes.

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

Completeness1/5

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

The description is too minimal. It does not mention any output, return values, or error handling. Given the lack of parameter explanations and behavioral details, it is incomplete for an agent to reliably invoke this tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 33% (only 'project' has a description). The description does not clarify the meaning or format of 'flowId' or 'name', and it does not compensate for the lack of parameter details.

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 clearly identifies the action (remove) and the target (a flow-scoped state variable), which is specific enough. However, it does not explicitly differentiate from similar sibling tools like unset_variable, but the phrase 'flow-scoped' adds some distinction.

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

Usage Guidelines1/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 set_state_var or unset_variable. The description does not mention any scenarios, prerequisites, or conditions that would indicate appropriate usage.

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