Skip to main content
Glama

Fail presentation request

fail_presentation_request
DestructiveIdempotent

Mark a pending or building presentation request as failed and record what happened so the request can be retried.

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": {
      "projectId": "<projectId>",
      "requestId": "<requestId>",
      "idempotencyKey": "<idempotencyKey>",
      "expectedVersion": "<expectedVersion>"
    },
    "name": "fail_presentation_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
detailsNoOptional bounded metadata using only the listed fields, such as summary, status and referenceIds. Not arbitrary command arguments or source content.
projectIdYesOwned Brain Scanner project ID from the account's project list; not a local path or repository URL.
requestIdYesExisting request record ID returned by the corresponding request creation or pending-request listing.
sessionIdNoID of this project's active agent session, returned when the session was started. Not needed for read-only calls.
executionIdNoExecution record ID returned when the execution was registered; associates this call with that execution. Not a session or project ID.
idempotencyKeyYesCaller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action.
presentationIdNoPresentation record ID from the presentation list or its creation result.
expectedVersionYesCurrent version of the target record from its latest read or mutation result. A stale value causes a version conflict; re-read before retrying.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / executionId / description
      Previous value: -"Execution record.id from begin_agent_execution when associating this call with an existing execution; not a session or project ID."New value: +"Execution record ID returned when the execution was registered; associates this call with that execution. Not a session or project ID."
    • changedInput schema / properties / presentationId / description
      Previous value: -"Presentation record ID from list_presentations or its creation result."New value: +"Presentation record ID from the presentation list or its creation result."
    • changedInput schema / properties / projectId / description
      Previous value: -"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."New value: +"Owned Brain Scanner project ID from the account's project list; not a local path or repository URL."
    • changedInput schema / properties / sessionId / description
      Previous value: -"Active session record.id from start_agent_session for this project. Pass it on later project calls after starting the session."New value: +"ID of this project's active agent session, returned when the session was started. Not needed for read-only calls."
  2. Changed5 schema fields changed
    • removedInput schema / properties / details / properties / status / description
      Removed value: -"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."
    • changedInput schema / properties / executionId / description
      Previous value: -"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."New value: +"Execution record.id from begin_agent_execution when associating this call with an existing execution; not a session or project ID."
    • changedInput schema / properties / presentationId / description
      Previous value: -"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."New value: +"Presentation record ID from list_presentations or its creation result."
    • changedInput schema / properties / requestId / description
      Previous value: -"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."New value: +"Existing request record ID returned by the corresponding request creation or pending-request listing."
    • changedInput schema / properties / sessionId / description
      Previous value: -"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."New value: +"Active session record.id from start_agent_session for this project. Pass it on later project calls after starting the session."
  3. Changed9 schema fields changed
    • addedInput schema / properties / details / description
      Added value: +"Optional bounded metadata using only the listed fields, such as summary, status and referenceIds. Not arbitrary command arguments or source content."
    • addedInput schema / properties / details / properties / status / description
      Added value: +"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."
    • addedInput schema / properties / executionId / description
      Added value: +"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."
    • addedInput schema / properties / expectedVersion / description
      Added value: +"Current version of the target record from its latest read or mutation result. A stale value causes a version conflict; re-read before retrying."
    • addedInput schema / properties / idempotencyKey / description
      Added value: +"Caller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action."
    • addedInput schema / properties / presentationId / description
      Added value: +"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."
    • addedInput schema / properties / projectId / description
      Added value: +"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."
    • addedInput schema / properties / requestId / description
      Added value: +"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."
    • addedInput schema / properties / sessionId / description
      Added value: +"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."
  4. First observed

TDQS

A4.2/5.0
Behavior4/5

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

The annotations already declare that this is destructive, non-readonly, closed-world, and idempotent. The description adds meaningful behavioral context beyond that: it can only fail pending/building requests and it records details so the request can later be retried.

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

Conciseness5/5

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

It is a single front-loaded sentence with no wasted wording. The operation and state precondition appear immediately.

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

Completeness4/5

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

For an eight-parameter destructive mutation, the description gives the essential state transition and retry context. The schema already documents the required IDs, idempotency key, version precondition, and details payload, so the remaining gaps are minor.

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%, so the schema already carries the parameter documentation burden. The description only indirectly gestures at the details payload with 'record what happened' and does not add syntax or format meaning beyond the schema.

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 gives a specific verb and resource: mark a presentation request as failed. It also names the eligible source states ('pending or building'), which sharply distinguishes it from siblings like retry_presentation_request or create_presentation_request.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It clearly scopes use to pending or building presentation requests, giving enough context to select the tool. It does not explicitly name the retry tool or state when not to use this tool, so it stops short of full alternative guidance.

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