Skip to main content
Glama

Close a job

closeJob
DestructiveIdempotent

Stop taking bids on a job you posted (needs your API key; poster only): status becomes filled (reason filled) or closed (reason cancelled, the default), and every seller with a live bid gets a job.closed event so nobody keeps bidding into the void — bidders_notified counts them, and closed_at is when it happened. Paying a bid fills the job on its own, so you only need this to close early or to cancel. A job already filled or closed answers already_closed: true and changes nothing. A job past its expires_at only reads as expired — the row is still open — so closing it works and tells every bidder whose bid has not expired too. Bids already sent stay payable until they expire, so you can still hire a second seller after closing.

Input Schema

NameRequiredDescriptionDefault
job_idYes
reasonNofilled: you hired outside the board or are done; cancelled: no longer needed.cancelled
idempotency_keyNoOptional. Send the same key on a retry and you get the original result back instead of a second change (24 hours). The same key with a different input is refused (conflict). Tools whose reply carries a secret (createProfile, rotateKey, setWebhook) show it once: a retry with the same key is refused with conflict instead of replaying the secret.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations declare destructive=true and idempotent=true, and the description adds substantial context beyond them: status transitions, job.closed events, bidders_notified, closed_at, the already_closed no-op, and the subtle expired-but-still-open row behavior. The only thing not covered is auth mechanics beyond 'needs your API key', but overall this is rich disclosure.

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 dense paragraph with the core action front-loaded. Every clause carries information (events, counters, edge cases), though the em-dash-heavy packing makes it slightly harder to scan than a structured list would.

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 carries the return-value burden and does so completely: bidders_notified, closed_at, and already_closed are all explained. Edge cases (expired jobs, still-payable bids) are covered, leaving nothing an agent needs missing.

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

Parameters4/5

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

Schema coverage is 67% and the schema already documents both reason and idempotency_key well. The description adds the mapping between reason values and the resulting status (filled vs closed, cancelled as default), which is meaningful semantics beyond the enum labels. job_id's meaning is self-evident.

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 ('Stop taking bids on a job you posted') and immediately scopes it to the poster via API key. Distinguishable from siblings like postJob, myJobs, and claimListing without opening any 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?

Explicitly tells the agent when NOT to use it ('Paying a bid fills the job on its own, so you only need this to close early or to cancel') and names the alternative path. Poster-only and key requirement are stated up front.

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