Skip to main content
Glama

Save a default

xbox_context_set
Idempotent

Saves a default seller, title, sandbox, or PlayFab title ID so later commands use it without repeating the flag; updates local CLI state only.

Instructions

Saves a default seller ID, title ID, sandbox ID or PlayFab title ID for later commands. Changes only local CLI state, but every later command without that flag will act on the new value, so tell the user what it now points at.

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": {
      "key": "<key>",
      "value": "<value>"
    },
    "name": "xbox_context_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYesWhich default to save.
valueYesThe ID, e.g. a seller ID from xbox_seller_list or a title ID from xbox_game_list.
profileNoProfile name. Defaults to XBOX_PROFILE, then 'default'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.1.2
    • addedInput schema / properties / key / description
      Added value: +"Which default to save."
    • addedInput schema / properties / profile / description
      Added value: +"Profile name. Defaults to XBOX_PROFILE, then 'default'."
    • addedInput schema / properties / value / description
      Added value: +"The ID, e.g. a seller ID from xbox_seller_list or a title ID from xbox_game_list."
  2. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare idempotent=true, destructive=false, openWorld=false, but the description adds real value by scoping the side effect to "local CLI state" and warning that the new value silently affects all subsequent commands. It also imposes a disclosure obligation on the agent ("tell the user what it now points at"). It does not say what happens when overwriting an existing default or whether the value is validated, which keeps it from a 5.

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?

A single front-loaded sentence that leads with the action and scope, followed by the consequence. It is dense and every clause carries information, though the compound construction (state change + warning + agent instruction) is slightly run-on for one 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?

For a three-parameter local-state setter with annotations and no output schema, the description covers purpose, side-effect scope, persistence behavior and a user-facing disclosure duty. Remaining gaps — whether an existing default is overwritten silently, how to read or remove the value, and profile scoping — are modest rather than blocking.

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 an enum on `key` and descriptions on `value` and `profile`, so the schema already carries the parameter burden. The description's enumeration of the four ID types merely restates the enum and says nothing about the `profile` parameter or value format, so it adds no meaning beyond structured data — baseline 3.

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 specific verb ("Saves") plus the exact resource set (seller ID, title ID, sandbox ID, PlayFab title ID) with the qualifier "for later commands", which immediately separates it from the read-side sibling xbox_context_get. An agent knows exactly what persistent state this mutates.

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?

The phrase "for later commands" and "every later command without that flag will act on the new value" tells the agent the context in which this is useful: establishing a persistent default instead of passing a flag each time. There is no explicit exclusion or mention of how to read or clear the value, so it stops short of full when/when-not guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.