Skip to main content
Glama

Set level rewards

set_level_rewards
Idempotent

Use this when the user wants roles given at given levels (existing roles, or new role names that will be created). Do not use for giving a role to specific members; use set_member_roles. 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>",
      "tiers": "<tiers>"
    },
    "name": "set_level_rewards"
  }
}

Input Schema

NameRequiredDescriptionDefault
tiersYesOne reward per level.
guild_idYesDiscord server ID, as returned by list_my_servers.
keep_highest_onlyNoMembers keep only the role of their highest tier.
apply_to_existing_membersNoGive the roles now to members already above a level (true by default).

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?

Goes beyond the annotations by disclosing that the call only stages a change into a pending card and that 'nothing changes on Discord until apply_card' — critical context for a non-readOnly mutation. It also reveals the side effect that new role names will actually be created. It stops short of covering ordering conflicts with existing rewards or what happens to tiers beyond the schema's maxItems cap.

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 sentences with no filler: the trigger comes first, the exclusion and alternative second, and the staging constraint is appended as the closing fact. Every clause carries decision-relevant 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 4-parameter mutation with no output schema, the definition covers the essential gaps: staging semantics, the required follow-up call, and sibling disambiguation. Minor omissions remain — no mention of how the tiers interact with already-configured rewards or whether repeated calls replace or merge the tier list.

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 description coverage is 100%, so the schema already documents guild_id, tiers, level bounds, color format, keep_highest_only, and apply_to_existing_members. The description only restates the role-name-or-new-role duality that the schema already states verbatim, adding no new syntax or format guidance. Baseline 3 is appropriate.

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 and resource ('roles given at given levels') and immediately clarifies the two cases the `role` field can take (existing roles or new role names that get created). It explicitly names the sibling set_member_roles as the thing it is not, so an agent can distinguish the two without opening either 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?

Gives an explicit when-to-use trigger ('user wants roles given at given levels') and an explicit when-not with the alternative named ('Do not use for giving a role to specific members; use set_member_roles'). It also states the follow-up requirement (apply_card) so the agent knows this is only the first step of a two-call flow.

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