Skip to main content
Glama

Search claims

search_claims
Read-onlyIdempotent

Search delivery claims by filters such as status, phone, or dates. Use offset/limit or cursor pagination to navigate results sorted by creation date.

Instructions

Search claims by filters with pagination (sorted by creation date). Returns claims (each shaped like get_claim) and a cursor for the next page. Pagination: either offset/limit, or cursor-based — pass the cursor from the previous response (other filters are then not needed).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoHow many claims to return (up to 1000).
phoneNoFilter by a phone number from the claim contacts.
stateNoStatus group: active, finished or delayed claims.
cursorNoCursor from the previous response — an alternative to offset/limit.
due_toNoCourier arrival no later than (ISO-8601).
offsetNoOffset for offset/limit pagination (default 0).
statusNoFilter by status. Known statuses: new, estimating, estimating_failed, ready_for_approval, accepted, performer_lookup, performer_draft, performer_found, performer_not_found, pickup_arrived, ready_for_pickup_confirmation, pickuped, delivery_arrived, ready_for_delivery_confirmation, delivered, delivered_finish, pay_waiting, returning, return_arrived, ready_for_return_confirmation, returned, returned_finish, failed, cancelled, cancelled_with_payment, cancelled_by_taxi, cancelled_with_items_on_hands.
claim_idNoFilter by claim id.
due_fromNoCourier arrival no earlier than (ISO-8601).
created_toNoCreated no later than (ISO-8601).
created_fromNoCreated no earlier than (ISO-8601).
external_order_idNoFilter by the external order id.
Behavior4/5

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

Annotations already mark it as read-only and idempotent, so the description adds value by disclosing the return shape (claims like get_claim, plus a cursor), the sort order (creation date), and the pagination semantics (either offset/limit or cursor from previous response). This is beyond annotation data.

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?

Three concise, information-dense sentences. Front-loaded with the main purpose, then return shape, then pagination alternatives. No redundant words.

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 a complex tool with 12 optional parameters and no output schema, the description adequately covers the core behavior: searching with filters, sorted results, return shape (same as get_claim), and cursor pagination. The schema handles parameter details, so no need to list every filter.

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 coverage is 100%, so each parameter has a description. The main description adds little beyond the schema, only reiterating the cursor-based pagination mode already covered in the cursor parameter description. Baseline for high coverage is 3.

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 uses a specific verb 'Search' and resource 'claims', clearly distinguishing it from sibling tools like get_claim (singular retrieval). It also specifies 'by filters with pagination' and 'sorted by creation date', which defines the tool's scope.

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 provides clear context on when to use this tool: to search claims with filters. It also explains two pagination modes (offset/limit or cursor-based) and notes that cursor-based pagination doesn't require other filters. However, it doesn't explicitly mention alternatives like get_claim for single claim retrieval, so no strong exclusion is given.

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/A1-x-Tech/mcp-yango-delivery'

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