Skip to main content
Glama
Ringer
by Ringer

lerg_complex_query

Read-only

Run complex LERG queries with JOINs across multiple tables to combine NPA-NXX with carrier details for telecom routing analysis.

Instructions

Execute a complex LERG query with JOINs across multiple tables. Supports filter operators: eq, ne, gt, gte, lt, lte, like, in, isnull, isnotnull. Use this when you need to combine data from different LERG tables, such as joining NPA-NXX (lerg_6) with carrier info (lerg_1) via OCN.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tableYesPrimary table name (e.g. lerg_6)
fieldsNoFields to return from primary table (e.g. ['npa','nxx','ocn','loc_name'])
filtersYesFilter conditions (e.g. [{field:'npa', operator:'eq', value:720}])
joinNoOptional JOIN clause
limitNoMax results (default 100)
offsetNoPagination offset (default 0)
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the description does not need to cover safety. It lists supported filter operators and shows a join example, but does not disclose additional behavioral traits like performance or caching. This is adequate but minimal extra context.

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 three sentences with no wasted words: first sentence states purpose, second lists operators, third gives usage guidance. It is front-loaded and efficient.

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?

Given the tool's complexity (6 parameters, nested objects, no output schema), the description covers the core use case and operators. However, it does not mention behavior for pagination (limit/offset) or return format. Annotations fill some gaps, making it reasonably complete.

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 description coverage is 100%, so baseline is 3. The description adds value by providing concrete examples of filter syntax (e.g., [{field:'npa', operator:'eq', value:720}]) and a join example (lerg_6 with lerg_1 via OCN). This helps agents understand parameter usage beyond the schema.

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 'Execute a complex LERG query with JOINs across multiple tables', providing a specific verb and resource, and distinguishes from siblings like lerg_query by emphasizing complexity and joins. An example (joining lerg_6 with lerg_1 via OCN) further clarifies the tool's purpose.

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?

The description explicitly says 'Use this when you need to combine data from different LERG tables', which gives clear context for when to use it. While it does not list when not to use it or explicit alternatives, the contrast with simpler siblings is implied.

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/Ringer/telique-mcp'

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