Skip to main content
Glama

close_poll

End your poll now: no more votes, the votes so far kept with its results. Free. Same as POST /v1/polls/{poll_id}/close.

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": {
      "poll_id": "<poll_id>"
    },
    "name": "close_poll"
  }
}

Input Schema

NameRequiredDescriptionDefault
api_keyNo
poll_idYesthe poll's id

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It does disclose meaningful behavior beyond a bare 'close': votes are retained, results remain available, and the call is 'Free'. It omits auth requirements (there is an api_key parameter), whether the action is reversible, and what happens if the poll is already closed.

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 captures the action and its key consequence, followed by a short cost note and endpoint equivalent. No filler, though the endpoint reference is of marginal value to an agent.

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

Completeness3/5

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

An output schema exists, so return values need not be explained. For a mutation with zero annotations, though, the description should say more about authentication (api_key) and irreversibility of closing — closing a poll is unlikely to be undoable, and that is not stated.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description adds nothing about the two parameters; only poll_id is documented in the schema ('the poll's id') and api_key is undocumented in both places, so 50% coverage is not compensated for. The HTTP endpoint mapping is helpful for orientation but not parameter semantics.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('End your poll') and immediately clarifies the semantics: voting stops but existing votes and results are preserved. That implicitly separates it from delete_poll, though it never names that sibling explicitly.

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?

Usage is implied by 'End your poll now: no more votes, the votes so far kept with its results' — you use it when you want to stop voting without losing data. However, it never explicitly contrasts with delete_poll or get_poll, so the agent must infer the choice.

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