Skip to main content
Glama

toggle_flag

Idempotent

Flag a reminder, or remove the flag when it already has one. Use it to bring a reminder into the Flagged list without changing its date or priority. Returns ok and the reminder, whose flagged field says which way it went.

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": {
      "id": "<id>"
    },
    "name": "toggle_flag"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesthe reminder's id, from list_reminders

Output Schema

NameRequiredDescriptionDefault
okYestrue once the change is stored
reminderYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations cover the safety profile (readOnlyHint=false, destructiveHint=false), and the description still adds real context: the operation is state-dependent, it does not touch date or priority, and the response includes the reminder with a `flagged` field showing the resulting direction. One gap: calling twice returns to the original state, which sits oddly against idempotentHint=true, and the description never warns about that.

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?

Three front-loaded sentences that each carry information, with the toggle behavior stated first. The return-value sentence partially duplicates information already present in the output schema, but it is short enough to be harmless.

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?

For a single-parameter mutation with rich annotations and an output schema, the description covers purpose, effect, side-effect exclusions, and result shape. Only failure behavior for a nonexistent id is left unaddressed.

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?

Only one parameter (`id`) with 100% schema description coverage including an example and provenance ('from list_reminders'). The description adds no meaning beyond the schema, which is the expected baseline when the schema already does the work.

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?

States a concrete verb and resource plus the exact toggle semantics: 'Flag a reminder, or remove the flag when it already has one.' An agent can immediately distinguish this from toggle_complete (completion state) and update_reminder (field edits) without opening any schema.

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?

'Use it to bring a reminder into the Flagged list without changing its date or priority' supplies a clear when-to-use context and an implicit when-not (use update_reminder for date/priority changes). It stops short of naming the alternative tool or stating error behavior for an unknown id.

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