Skip to main content
Glama

Close a listing early

close_listing
Destructive

Use this only after its preview tool (preview_ + this name) and the brand’s explicit yes, with the same details and its confirmation_token. Closes the listing to applications for good and tells each applicant still waiting. Creators already accepted keep going. It works once and refuses, changing nothing, if anything moved since the preview.

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": {
      "campaign": "<campaign>",
      "confirmation_token": "<confirmation_token>"
    },
    "name": "close_listing"
  }
}

Input Schema

NameRequiredDescriptionDefault
campaignYesThe campaign reference, like cmp_…, from create_campaign_draft or list_campaigns.
confirmation_tokenYesThe confirmation_token from this operation’s preview for these exact details.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, but the description adds what those hints cannot: closure is permanent, waiting applicants are notified, already-accepted creators are unaffected, and a stale-state call aborts with no changes. That is substantive behavioral context beyond the structured hints.

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?

Three dense sentences with the precondition front-loaded and no filler; each sentence adds a distinct fact (gate, effect, failure mode). The 'preview_ + this name' construction is slightly indirect versus naming preview_close_listing outright, which costs a point.

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 destructive, non-idempotent, 2-parameter mutation with no output schema, the description covers the authorization gate, irreversibility, side effects on applicants, preserved state, and stale-token failure. Nothing an agent needs before invoking it 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 both fields already explain themselves, including that confirmation_token comes from this operation's preview for these exact details. The description echoes that binding ('with the same details and its confirmation_token') without adding syntax, format, or sourcing detail, so it sits at the baseline.

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 and resource with concrete downstream effects: 'Closes the listing to applications for good and tells each applicant still waiting,' plus the exception 'Creators already accepted keep going.' This is distinguishable from preview_close_listing (which it explicitly requires) and from pause/extend siblings via the permanence wording 'for good.'

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 gives an explicit gate ('Use this only after its preview tool … and the brand's explicit yes') naming the prerequisite sibling by construction pattern and requiring matching details and confirmation_token. It also states a refusal condition ('It works once and refuses … if anything moved since the preview'), so an agent knows both when to call and when the call will fail.

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