Skip to main content
Glama

Clear context

clear_context
Idempotent

Clear the active brand and/or event. Pass brand: true or event: true to clear just one; pass neither to clear both.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "clear_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
brandNoClear the active brand.
eventNoClear the active event.

Output Schema

NameRequiredDescriptionDefault
contextYesThe selected brand and event, when set.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "context": {
      +      "description": "The selected brand and event, when set.",
      +      "properties": {
      +        "brandId": {
      +          "description": "Selected brand identifier.",
      +          "type": "string"
      +        },
      +        "brandName": {
      +          "description": "Selected brand name.",
      +          "type": "string"
      +        },
      +        "eventId": {
      +          "description": "Selected event identifier.",
      +          "type": "string"
      +        },
      +        "eventName": {
      +          "description": "Selected event name.",
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "context"
      +  ],
      +  "type": "object"
      +}
  2. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations cover the safety profile (destructiveHint=false, idempotentHint=true), so the bar is lower, and the description adds genuinely new behavior: passing neither flag clears both contexts, which is not derivable from the schema. It omits edge cases such as what happens when no context is active or whether other session state is affected, keeping it at 4.

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, front-loaded with the core action, with zero redundant wording. The parameter behavior is stated compactly in the second sentence.

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?

The tool is simple, an output schema exists so return values need no explanation, and the description covers the action plus the full flag-combination matrix. Only the no-active-context case is unaddressed, a minor gap for a two-flag reset tool.

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 flag is documented there, so the baseline is 3. The description goes beyond that by defining the interaction between the two flags — the 'pass neither clears both' default is a semantic rule the schema cannot express.

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?

States a specific verb ('clear') and resource ('the active brand and/or event'), which is unambiguous about what is being removed. It does not name the sibling tools (set_context, get_context, select_brand/select_event) to distinguish itself explicitly, so it falls short of a 5.

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

Usage Guidelines3/5

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

The description explains the parameter combinations (one flag = clear one, neither = clear both), which implicitly tells the agent how to invoke it. However, it never says when to use this versus set_context/get_context or whether clearing is a prerequisite for other operations, so usage guidance is only implied.

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