Skip to main content
Glama

Cape Partners Exchange

Publish a manifest to the Cape exchange

publish_manifest
Destructive

Use this when the user wants to DECLARE something to the Cape exchange — an intent to buy or sell, what they offer, what they need — so counterparties and the exchange can act on it. The manifest is the unit: identity (who is speaking), wants, offers, interface, delivery contract, boundary, and optionally a mandate (direction, service_type from the catalogue, scope). Build every field from the user's own words; ask for anything missing rather than inventing it, and never publish on a third party's behalf. Returns a msgid that is the only route back to the thread. Call with dry_run=true BEFORE confirming: the dry run also runs the exchange's own validator and returns its verdict, the checks that failed and a separate list needing a human read, plus its SCOPE reading, while recording nothing, so a declaration can be fixed and re-checked until it passes — a submission whose scope does not register cannot be matched, however well formed it is. Ask the user for the INTERFACE before composing, and name what durable means: a POLLING SCHEDULE — the cadence at which they will come back, e.g. "polls every 30 minutes" — or an endpoint they run that Cape can call. A declaration reachable only inside this chat is refused a workspace, and a workspace is where matching happens. TO RE-DECLARE (fix a scope, add a field, correct an identity) pass key = the msgid from your earlier receipt: an identity is claimed with a KEY, not a label, so a declaration under a name that already owns a workspace is refused (409) without it — and a NEW name with no key is a SEPARATE participant whose thread cannot see the original's. Send the WHOLE declaration when you re-declare, not only the part you changed: the exchange checks it as a whole. The call is staged: a dry run sends nothing, and the confirmed call is bound to the exact payload that dry run returned. Call once with dry_run=true to get the exact payload and a confirmation_token; call again with the same arguments plus that token to send. A token that does not match the payload is refused and nothing is sent.

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": {
      "request_id": "<request_id>",
      "identity": "<identity>"
    },
    "name": "publish_manifest"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyNoTo CONTINUE as a participant you already are, present the msgid (or answer_key) from that earlier receipt. Required to re-declare under the SAME agent_name — without it a bound name is refused (409). Omit it and a name that already owns a workspace can never be updated through this app.
wantsNoWhat the user wants, as they stated it.
offersNoWhat the user offers, as they stated it.
dry_runNotrue returns the payload and a confirmation_token, and sends nothing.
mandateNoOptional but decisive: {"intents":[{"direction":"buy|sell","service_type":"<catalogue>","scope":{}}]}. An intent is only read from here.
boundaryNoEnforceable limits: what they refuse, require, or exit on.
identityYesWho is speaking, in the user's words. Required.
interfaceNoHow to reach them / how they accept contact. NEEDED FOR A WORKSPACE — durable means a POLLING SCHEDULE: the cadence at which the user will fetch this thread again (e.g. "polls every 30 minutes"), or an endpoint they run that Cape can call (https://…). An interface that ends with the chat session is refused a workspace, so ask for this rather than assuming.
agent_nameNoShort identifier for this agent.
request_idYesYour own idempotency key for this submission; quote it as the receipt.
confirmation_tokenNoThe token from the dry run, for the confirmed send.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / properties / delivery_contract
      Removed value: -{
      -  "description": "What delivery means for this participant.",
      -  "type": "object"
      -}
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations declare readOnly=false, destructive=true, openWorld=true, but the description adds the operationally critical behavior: two-phase staging with confirmation_token bound to the exact dry-run payload, validator verdict and failed-checks output, 409 refusal on a bound name without a key, workspace refusal for non-durable interfaces, and the msgid as the only route back. Far exceeds annotation content.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the use case, but the body runs long with heavy all-caps emphasis and jumps between usage, re-declare mechanics, and staging flow, repeating the dry-run/token story twice. The durable-interface explanation is duplicated almost verbatim from the schema, so some sentences do not earn their place.

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 an 11-parameter, nested-object, no-output-schema mutation tool, the description covers the entire lifecycle: dry run, validator verdict, token-bound send, msgid receipt, and re-declaration. Nothing an agent needs to call it correctly or recover from a refusal is 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 100%, so baseline is 3; the description nonetheless adds semantics the schema cannot: `key` must be the msgid from a prior receipt (not a label), a new name without a key is a separate participant, and a re-declaration must resend the WHOLE payload because the exchange validates it as a whole. The interface paragraph largely restates the schema's own text, keeping it short of a 5.

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 the specific action (DECLARE something to the Cape exchange), names the resource being created (a manifest as the unit of identity, wants, offers, interface, delivery contract, boundary, optional mandate), and implicitly separates itself from reply_to_exchange and withdraw_manifest by framing this as initial declaration. An agent can tell what it produces without opening the 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 explicit when-to-use (user wants to declare an intent to buy/sell), when to re-declare (fix a scope, add a field, correct identity) with the `key` condition, when to dry-run (before confirming), and a hard exclusion (never publish on a third party's behalf; ask rather than invent). Alternatives are addressed through the key/new-name distinction rather than by naming siblings.

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.