Skip to main content
Glama
alexxcpr

ONE-MCP

by alexxcpr

fetch_query

Execute FETCH queries on ONE Framework for retrieving, filtering, aggregating, and exploring data across linked entities, enabling reports and data model discovery.

Instructions

Execute a FETCH query against the ONE Framework instance. FETCH is a custom query language for retrieving, filtering, and aggregating data from one or more entities. Use this to: explore data, discover relationships, run reports, and understand the data model.

Syntax examples:

  • FETCH entity (key, name) LIMIT 10 — basic retrieval

  • FETCH entity (key, name) FILTER name CONTAINS "invoice" — filtered

  • FETCH invoice (key, total) { invoice_item TO invoice (key, product_name) } — with linked entities

The query is always executed under the security privileges of the authenticated user.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesThe FETCH query to execute. Must start with FETCH.
Behavior3/5

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

With no annotations, the description carries the burden for behavioral disclosure. It provides valuable context by stating that queries always run under the authenticated user's security privileges and focusing on read-style operations. However, it does not describe the response format, pagination, error behavior, or potential performance implications, leaving notable gaps.

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 well-structured and front-loaded: purpose first, then concrete use cases, syntax examples, and a security note. Every sentence earns its place, and the example block is dense with necessary information for a custom query language.

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 complex custom-language tool, the description covers purpose, when to use, syntax, and security thoroughly. However, with no output schema, it does not specify the result shape, which is a moderate gap. Overall, it is complete enough for an agent to select and invoke the tool confidently.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema covers the single query parameter at 100% baseline, but the description adds significant meaning through syntax examples and an explanation of what FETCH can do. This is essential for correctly constructing a query, going far beyond the schema's terse 'Must start with FETCH' requirement.

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 it executes a FETCH query against the ONE Framework instance and defines the query language's capabilities: retrieving, filtering, and aggregating data. This distinguishes it from sibling tools like list_entities and get_entity_record by emphasizing a custom, flexible query language.

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 lists use cases: explore data, discover relationships, run reports, and understand the data model. It does not explicitly name alternatives or exclusion conditions, but the purpose and syntax examples make it obvious when to use this tool versus the simpler sibling tools.

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/alexxcpr/ONE-MCP'

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