Skip to main content
Glama

set_decision_flag

Update a decision's flag or tags without rewriting its text or reason. Creates a single amendment record for lightweight changes.

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)
decision_idYesDecision id to amend (e.g. 'D000007')
do_not_revertNoNew flag value (omit to leave unchanged)
Behavior4/5

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

Description adds behavioral insights beyond annotations: it writes a single amendment record to .codevira/decisions.jsonl, which is not indicated by readOnlyHint=false or destructiveHint=false. This clarifies the non-destructive, append-only nature of the operation, though it doesn't specify return behavior.

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?

Three sentences, no wasted words. The version is front-loaded, followed by purpose, usage guidance, and a clear contrast with an alternative. Every sentence earns its place.

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?

Given three parameters with full schema coverage, no output schema, and annotations that are consistent, the description covers the essential behavioral context (writes amendment record) and usage guidance. It leaves no significant gaps for an agent to make decisions.

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

Parameters4/5

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

Schema coverage is 100% and each parameter is described adequately in the schema. The description adds semantic context by framing the operation as 'lightweight' and contrasting with supersede_decision, reinforcing that the parameters are for targeted updates rather than full rewrites. This enhances understanding beyond the schema alone.

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?

Description clearly states it performs a lightweight flag/tag update on an existing decision, using specific verbs like 'toggle' and 'correct'. It explicitly distinguishes itself from supersede_decision by highlighting the avoidance of mandatory rewrite, making the purpose distinct among sibling tools.

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 (toggle do_not_revert or correct tag list) and when not to (for semantic rewrites use supersede_decision). It also explains the action writes to a specific file, providing clear context for appropriate invocation.

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