Skip to main content
Glama

Cancel Ride

cancel_ride
DestructiveIdempotent

Cancel an active ride using its ride ID, include an optional reason, and receive the cancellation fee and final ride status.

Instructions

Cancel an active ride and return its cancellation fee and final status.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
reasonNoOptional cancellation reason
rideIdYesRide ID returned by request_ride
Install Server

TDQS

A4/5.0
Behavior4/5

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

Beyond the destructiveHint and idempotentHint annotations, the description discloses that cancellation produces a fee and a final status, which is useful behavior context. It does not contradict annotations and adds value about the operation's outcome.

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 a single, front-loaded sentence with no filler. It communicates the action, precondition, and expected return value efficiently.

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 a simple two-parameter cancel operation, the description covers the essential precondition and return information. While there is no output schema or explicit error/edge-case discussion, the annotations and description together provide adequate context for an agent to invoke the tool.

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 rideId and reason are already documented in the schema. The description does not add extra parameter semantics beyond the schema, so the baseline score of 3 is appropriate.

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 clearly states the action (cancel), the target resource (an active ride), and the return value (cancellation fee and final status). It is distinct from sibling tools like complete_ride and request_ride.

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

Usage Guidelines3/5

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

The phrase 'active ride' implies when this tool should be used, but no explicit exclusions or alternative tool references are provided. An agent must infer that completed or already-cancelled rides would not be valid targets.

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

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/Riya-Sahaa/ubersync-mcp-app'

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