Skip to main content
Glama

set_decision_flag

Update decision flags or tags without rewriting the decision text or reason. Toggle do_not_revert, set is_outdated, or replace tags with a single amendment record.

Instructions

v3.0.0 lightweight flag/tag update for an existing decision. Use this when you only need to toggle do_not_revert or correct a tag list — avoids supersede_decision's mandatory rewrite of the decision text + reason. Writes a single amendment record to .codevira/decisions.jsonl. For semantic rewrites use supersede_decision instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagsNoReplacement tag list (omit to leave unchanged)
forceNoRequired to set is_outdated=true on a do_not_revert (protected) decision
decision_idYesDecision id to amend (e.g. 'D000007')
is_outdatedNov3.7.0: set/clear the outdated tombstone (omit to leave unchanged; False un-retires a decision marked via mark_decision_outdated)
do_not_revertNoNew flag value (omit to leave unchanged)
Behavior5/5

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

Discloses that it writes a single amendment record to .codevira/decisions.jsonl, which goes beyond annotations (which only indicate not read-only and not destructive). This adds meaningful behavioral context about side effects.

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 with zero waste. Front-loaded with version and clear action. Every sentence earns its place, distinguishing from sibling and describing behavior.

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

Completeness5/5

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

For a 5-parameter tool with no output schema, the description covers purpose, usage context, behavioral side effect (file write), and parameter intent. No gaps remain given the annotations and schema coverage.

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 each parameter described. The tool description adds high-level context but does not enhance understanding of individual parameters beyond the schema. 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 states it performs a lightweight flag/tag update on an existing decision, specifying the exact resources (tags, do_not_revert, is_outdated) and distinguishes itself from supersede_decision by avoiding a full rewrite. This is a specific verb+resource+scope with clear sibling differentiation.

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

Usage Guidelines5/5

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

Explicitly states when to use ('only need to toggle do_not_revert or correct a tag list') and when not to ('for semantic rewrites use supersede_decision'), providing clear context and an alternative tool.

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/sachinshelke/codevira'

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