Skip to main content
Glama

Basis Theory MCP by usefulapi

Search tokens

basis_theory_search_tokens
Read-only

Search tokens with Basis Theory's query syntax over metadata, e.g. metadata.customer_id:"cus_1". Returns metadata only. Read-only despite being a POST — the query goes in the body. Basis Theory: POST /v2/tokens/search.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sizeNoPage size, 1-100.
queryYesQuery string, e.g. type:card AND metadata.customer_id:"cus_1".
startNoCursor from the previous page's pagination.next. Omit for the first page.

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
Behavior5/5

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

Annotations only declare readOnlyHint=true, and the description materially extends that: it resolves the POST/read-only tension ("Read-only despite being a POST — the query goes in the body") and discloses the return scope ("Returns metadata only") as well as the underlying endpoint. These are behavioral facts beyond the annotation.

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 short sentences, no waste, all front-loaded: purpose, return scope, and the behavioral caveat appear before the endpoint reference. Every clause earns its place.

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 search tool with readOnlyHint and no output schema, the description covers purpose, query syntax, return scope, and the POST caveat. Pagination is only handled in the schema (start/size), so the description is slightly light on how to page, but otherwise complete.

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 the query, size, and start parameters are already documented. The inline example query (metadata.customer_id:"cus_1") largely mirrors the schema's own example, adding only marginal meaning beyond what the schema provides; baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (search) and resource (tokens) and clarifies the scope: query syntax over metadata with metadata-only returns. This naturally separates it from list_tokens and get_token, but no sibling is named explicitly, so it stops short of a 5.

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 when the tool applies (query-based filtered search) but gives no explicit when-to-use/when-not guidance, nor does it route the agent away from list_tokens or get_token for related needs. Usage is inferable rather than stated.

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.