Skip to main content
Glama

Castle MCP by usefulapi

Search items in a list

castle_search_list_items
Read-only

Search the entries of one list — the blocked IPs, emails or device ids it holds. Read-only despite being a POST. Castle: POST /v1/lists/{list_id}/items/query.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNo1-based page number.
filtersNoOptional {field, op, value} filters over the items.
list_idYesThe list to search.
results_sizeNoResults per page, 1-100.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, but the description adds genuinely useful context by preempting the HTTP-method confusion: 'Read-only despite being a POST.' It also exposes the underlying REST route, which helps an agent map intent to the API. It stops short of describing pagination behavior or result limits beyond what the schema carries.

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?

One tightly packed sentence plus a short clarifier and the route. Nothing is redundant and the resource scope is front-loaded before the method caveat.

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 read-only filtered-list tool with a fully documented schema and no output schema, the definition covers purpose, scope and the POST/read-only nuance. The only minor gap is pagination/return-shape guidance, which the schema's page and results_size parameters largely imply.

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 page, results_size, filters and list_id are already documented in the schema with ranges and semantics. The description adds only the resource framing ('entries of one list') and no extra syntax or format detail, so the baseline of 3 applies.

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 a specific verb (search) and resource (entries of one list), and clarifies the resource scope by enumerating what a list holds (blocked IPs, emails, device ids). This cleanly distinguishes it from the sibling castle_search_lists, which searches the lists themselves rather than their entries.

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 description implies usage (query the items inside a given list) and the required list_id makes the scope explicit, but it never states when to prefer this over castle_get_list_item or castle_count_list_items, nor any prerequisites. Usage is inferable rather than spelled out.

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.