Skip to main content
Glama

Adjust member XP

adjust_member_xp
Idempotent

Use this when the user wants to give, remove or set a member's XP, set their level, or reset them to zero. Do not use for the whole server; use reset_server_xp. Adds the change to the pending card for this server; nothing changes on Discord until apply_card.

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": {
      "guild_id": "<guild_id>",
      "member": "<member>",
      "operation": "<operation>"
    },
    "name": "adjust_member_xp"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountNoXP for give, remove, set; the level for set_level (0 to 500).
memberYesDisplay name, username or mention.
guild_idYesDiscord server ID, as returned by list_my_servers.
operationYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and idempotentHint=true, so the safety profile is largely covered. The description adds genuinely non-obvious behavior: the change is written to a pending card and nothing takes effect on Discord until apply_card, which prevents an agent from reporting success prematurely. It stops short of covering permission requirements, what happens if a card already exists, or how the pending change is later discarded.

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?

Three short sentences, front-loaded with the trigger condition, then the exclusion, then the staging constraint. No filler and no restatement of the tool name or title.

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?

There is no output schema, and the definition covers the essential workflow (staged write, apply_card to commit) for a 4-parameter mutation tool. It leaves a small gap around what the call returns and what happens to the pending card if the operation is repeated or superseded.

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 75%, so baseline is 3; the schema already documents member, guild_id and the amount semantics per operation. The prose does map the operations to intent (including 'reset them to zero'), which clarifies the enum values slightly, but it adds no format, range, or unit detail beyond the schema and says nothing about how amount is interpreted for reset.

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?

The description names a specific verb set (give, remove, set, set level, reset) against a specific resource (a member's XP) and explicitly contrasts with the server-wide variant. An agent can distinguish this from reset_server_xp or get_member_level 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 Guidelines5/5

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

It states both the triggering intent ('when the user wants to give, remove or set a member's XP...') and an explicit exclusion with the correct alternative ('Do not use for the whole server; use reset_server_xp'). The final sentence adds the follow-up requirement (apply_card), so the agent knows the operation is not complete on its own.

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