Skip to main content
Glama

Change a member's XP

modify_xp
Destructive

Outward: Add, subtract or set a member's XP. Members see this: it moves them on the leaderboard and can cross an XP-role threshold, which grants a Discord role. subtract floors at 0; set is an absolute value, not a delta. Confirm the number with the human before calling.

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": {
      "member_id": "<member_id>",
      "operation": "<operation>",
      "amount": "<amount>"
    },
    "name": "modify_xp"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountYes
member_idYesMember id, from list_members.
operationYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true, readOnlyHint=false and idempotentHint=false, so the safety profile is covered; the description goes beyond that by disclosing downstream effects an agent could not otherwise know — leaderboard movement and an XP-role threshold crossing that grants a Discord role. It also pins down edge behavior (subtract floors at 0, set is absolute rather than a delta). It stops short of saying whether the change is recorded in history or how it could be reverted, which keeps it off 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four short clauses, front-loaded with the outward action and then the member-visible consequences, followed by the two operation edge cases and the human-confirmation rule. No filler; each sentence adds distinct information.

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 destructive mutation with no output schema, the definition supplies the critical pieces: side effects, threshold/role consequences, and a confirmation precondition. What remains missing is modest — required permissions and whether the response or XP history reflects the change — so it is close to complete but not fully.

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 only 33% and `operation` has no enum, so the description carries the burden — and it does, enumerating the three operations and distinguishing `set` (absolute) from the delta operations, plus the zero floor on `subtract`. The `amount` parameter is only obliquely covered ("confirm the number"), and it is unclear whether amount must be positive when subtracting, so a 4 rather than 5.

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 set (add, subtract, set) and resource (a member's XP), which cleanly separates it from read-only siblings like get_xp_history and from modify_accomplishments. An agent knows exactly what mutating action this performs without opening the schema.

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?

Provides one concrete precondition — confirm the number with the human before calling — which is real usage guidance for a destructive mutation. However, it never names an alternative tool or a when-not-to-use condition (e.g., when to prefer modify_accomplishments or when XP should not be adjusted at all), leaving sibling routing to inference.

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.