Skip to main content
Glama

Preview closing a listing early

preview_close_listing
Read-only

Use this before close_listing: it checks the rules and says exactly what will happen, who is told and what is paid, and returns a confirmation_token for close_listing. It changes nothing. What close_listing does: Closes the listing to applications for good and tells each applicant still waiting. Creators already accepted keep going. Show the brand the result and wait for a clear yes.

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>"
    },
    "name": "preview_close_listing"
  }
}

Input Schema

NameRequiredDescriptionDefault
campaignYesThe campaign reference, like cmp_…, from create_campaign_draft or list_campaigns.

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 readOnlyHint=true and destructiveHint=false, but the description goes well beyond that: it discloses that the preview produces a confirmation_token consumed by close_listing, that closure is permanent ('for good'), which parties are notified ('each applicant still waiting'), and the non-obvious carve-out that 'Creators already accepted keep going.' These are consequence details the structured fields cannot convey.

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?

Front-loads the operative instruction before any explanation, which is the right ordering. It spends a couple of sentences detailing close_listing's effects, but that context earns its place by telling the agent what the preview result means; wording is tight throughout.

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?

No output schema exists, so the description must explain what the call returns, and it does: a rules check, the concrete consequences (who is told, what is paid), and a confirmation_token. The prerequisite campaign reference is covered by the schema. Nothing an agent needs to invoke or interpret this preview 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?

Only one parameter exists and the schema documents it fully at 100% coverage (format hint 'cmp_…' and source 'from create_campaign_draft or list_campaigns'). The description adds no additional constraint on the campaign reference, so the baseline 3 for schema-covered parameters is correct.

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?

Names a specific verb and resource ('preview closing a listing early') and immediately delimits it against the sibling: 'Use this before close_listing: it checks the rules and says exactly what will happen... and returns a confirmation_token for close_listing. It changes nothing.' An agent can distinguish this dry-run from the mutating close_listing 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 ordering rule ('Use this before close_listing'), an explicit purpose (checks rules, reports who is told and what is paid), and an explicit human-in-the-loop gate ('Show the brand the result and wait for a clear yes'). The alternative tool is named and the condition selecting it is stated.

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