Skip to main content
Glama

Get context

get_context
Read-onlyIdempotent

Get the currently active brand and event. Call this at the start of a conversation to see what scope subsequent tools will operate against.

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": "get_context"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

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
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered. The description contributes the useful dependency fact that 'subsequent tools will operate against' this scope, but omits the key edge case: what is returned when no brand or event has been selected.

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, the resource first and the usage instruction second, with no redundant or filler wording. Every sentence carries information an agent needs.

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 zero-parameter, read-only tool with full annotation coverage and an output schema, the description is nearly complete. The single missing piece is empty-state behavior, which matters because callers need to know whether a null brand/event means misconfiguration.

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?

The tool takes zero parameters, so there is no parameter meaning to convey and the baseline of 4 applies. Nothing in the description misrepresents the call signature.

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 uses a specific verb and resource ('Get the currently active brand and event') and identifies the payload precisely, so an agent knows it returns scope rather than entities. It implicitly contrasts with set_context/clear_context via 'currently active' but never names an alternative explicitly.

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?

It gives a clear timing rule: 'Call this at the start of a conversation.' That is strong positive guidance, but there is no when-not guidance (e.g., whether it must be re-called after set_context or select_brand) and no sibling named as an alternative.

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