Skip to main content
Glama

bridge_fail

Mark a claimed task as failed. Requeue it after a delay until max attempts are exceeded, then dead-letter; set requeue=false to dead-letter immediately.

Instructions

Mark a claimed task failed. By default it is requeued (after retry_delay_seconds) until max_attempts is exhausted, then dead-lettered; set requeue=false to dead-letter immediately. Requires the lease_token from bridge_claim.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNoOptional failure detail
channelYes
requeueNo
task_idYes
lease_tokenYes
retry_delay_secondsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

Beyond what annotations already convey (mutation, non-idempotent), the description discloses the full state machine behavior: a failed task is requeued after retry_delay_seconds until max_attempts is exhausted and then dead-lettered. It also exposes the immediate dead-letter path (requeue=false) and the lease_token prerequisite — all operational behaviors the agent cannot infer from the annotations or schema. The description is consistent with annotations; no contradiction.

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?

The description is two sentences with no filler, front-loaded with the action verb. The second sentence efficiently captures the default retry behavior, the terminal dead-letter outcome, the immediate-path alternative, and the required resource. Every clause adds necessary behavioral information.

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?

With an output schema present, return-value explanation is unnecessary. The description covers the complete contract of this tool: the state transition, the retry/dead-letter timeout behavior, the forcing path to immediate dead-letter, and the token prerequisite from bridge_claim. Nothing missing that an agent needs to invoke this tool correctly within the bridge task lifecycle.

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 description coverage is only 17%, so the description shoulders the explanatory load. It meaningfully explains the critical parameters: requeue (false => immediate dead-letter), retry_delay_seconds (the retry wait), and lease_token (source and meaning). The remaining parameters (channel, task_id, error) are left implicit — task identity is clear from the 'claimed task' context and the schema already describes error — so the compensation is strong but not exhaustive.

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 opens with the direct action 'Mark a claimed task failed,' which names the verb and resource clearly. It further differentiates this operation from the task-lifecycle siblings by spelling out the failure path (requeue/dead-letter), making it easy to distinguish from complementary tools like bridge_ack and bridge_complete.

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?

The description gives a concrete and important prerequisite — 'Requires the lease_token from bridge_claim' — which tells the agent exactly when in the workflow this tool is valid. It also spells out the two usage paths (default requeue vs. requeue=false for immediate dead-letter), but it does not explicitly name the alternative tools (e.g., 'use bridge_complete when the task succeeded'), so the when-not guidance is implicit rather than stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/constripacity/Claude-Bridge'

If you have feedback or need assistance with the MCP directory API, please join our Discord server