Skip to main content
Glama

Edit a giveaway

edit_giveaway
Idempotent

Use this when the user wants to change a running giveaway: prize, description, end, number of winners, conditions, claim time or automatic reroll. Do not use for ending or cancelling it; use end_giveaway or cancel_giveaway. 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>"
    },
    "name": "edit_giveaway"
  }
}

Input Schema

NameRequiredDescriptionDefault
bonusNoExtra chances.
ends_atNoNew end, ISO 8601 with offset.
winnersNo1 to 20.
durationNoNew end, from now: 30m, 12h or 3d.
giveawayNoThe giveaway title (or the only one running).
guild_idYesDiscord server ID, as returned by list_my_servers.
new_prizeNoNew prize.
conditionsNoEntry requirements.
auto_rerollNoDraw again when a prize is not claimed.
claim_hoursNoHours winners have to claim (0: nothing to claim).
descriptionNoNew description.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=true), so the bar is lower; the description still adds the crucial two-phase behavior that no annotation conveys: the edit is staged on a pending card and nothing on Discord changes until apply_card. This is exactly the kind of side-effect context an agent needs before calling a mutating tool.

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 sentences, each earning its place: purpose first, exclusion second, side-effect model third. No filler, no restatement of the title, and the most decision-relevant information is front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with 11 parameters, the definition covers purpose, exclusions, and the deferred-commit workflow that determines whether the agent must also call apply_card. With no output schema needed and annotations covering safety, nothing an agent needs to invoke this correctly is missing.

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% and every parameter already carries a description (including the ISO 8601 vs relative-duration split and the 1-20 winner range), so the schema does the heavy lifting. The description echoes the editable fields but adds no format or constraint detail beyond it, and the 'bonus' parameter for extra chances is not mentioned at all. 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?

The description opens with a specific verb and resource ('change a running giveaway') and then enumerates the mutable facets: prize, description, end, winners, conditions, claim time, automatic reroll. That enumeration maps directly onto the 11-parameter schema, so an agent can tell at a glance whether the requested change belongs here.

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 the trigger condition ('when the user wants to change a running giveaway') and gives an explicit negative case with named alternatives: ending or cancelling must go to end_giveaway or cancel_giveaway. It also names the follow-up tool (apply_card), covering the when/when-not/next-step triad.

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