Skip to main content
Glama

Search the schema

search_schema
Read-onlyIdempotent

Full-text search across every entity and field in the project, using pattern matching. An entity is a table of rows or a document, and a field is a column or a path inside a document — both are searched, so a projection such as 'campaign.status' is found the same way a column is. Returns matching items ranked by relevance, searching entity names, field paths, and the semantic descriptions attached to them. Use it to find the address to pass to get_column_metadata, probe_column or update_column. Example: search_schema(query='campaign') returns every entity and field related to campaigns, ordered by relevance.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "search_schema"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of results to return (default 20, max 100)
queryYesSearch text matched against entity names, field paths and their descriptions (e.g., 'user', 'transaction', 'campaign')

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the description's job is added context — and it delivers: relevance ranking, and that matching spans entity names, field paths and their semantic descriptions. It does not discuss result-count behavior or what an empty result implies, but nothing contradicts the annotations.

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?

Front-loads the operation and scope, then the entity/field definition, then the downstream routing, then a concrete example. The trailing example is slightly redundant with the earlier explanation of what is searched, but it is short and adds a concrete shape an agent can imitate.

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?

With no output schema, the description correctly takes on the burden of describing return values (matching items, relevance-ordered) and the three fields that are matched. For a 2-parameter read tool this is close to complete; only edge behavior (no matches, result truncation at limit) is left implicit.

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 coverage is 100%, so the baseline is 3; the description earns above that by explaining that 'pattern matching' applies simultaneously to entity names, field paths and semantic descriptions, which is more precise than the schema's own phrasing. The limit parameter is left entirely to the schema, which is acceptable given its inline default/max documentation.

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 and scope: full-text pattern search across every entity and field, and defines what 'entity' and 'field' mean so a projection like 'campaign.status' is not mistaken for an unsupported target. It also states the return nature (matching items ranked by relevance), so an agent knows this is a discovery tool, not a metadata fetch.

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?

Explicitly routes the agent forward: use the results as the address for get_column_metadata, probe_column or update_column, and gives a worked example. It does not say when to prefer this over get_schema (full schema dump) or refresh_schema, so the exclusion half of the guidance is missing.

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.

Resources