Skip to main content
Glama

build_repository_query

Generate a type-safe repository query with filtering, pagination, and sorting

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": {
      "aggregate": "<aggregate>",
      "operation": "<operation>",
      "database": "<database>",
      "orm": "<orm>"
    },
    "name": "build_repository_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
ormYesORM/query builder
databaseYesTarget database
aggregateYesAggregate/entity name
operationYesQuery operation
withPaginationNoAdd limit/offset pagination

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It says the generated query is type-safe and supports filtering, pagination, and sorting, but it does not explain whether the tool returns code, writes files, requires an existing schema or model, or what happens on invalid inputs.

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 a single front-loaded sentence with no filler. Every phrase contributes to the stated purpose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a five-parameter, four-required generator with no annotations and no output schema, the definition is too thin. It omits the output form, required inputs such as a schema or model, and the behavioral contract an agent needs in order to call it correctly.

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%, with enum values and descriptions for all five parameters, so the schema already provides strong parameter semantics. The description adds no parameter-level meaning, and its mention of "filtering" and "sorting" is not reflected in explicit filter or sort parameters, which could create mild confusion.

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?

The description uses a specific verb, "Generate," and a specific resource, "repository query," and names filtering, pagination, and sorting. It is clear what the tool does, but it does not distinguish itself from sibling generators such as generate_repository, generate_tanstack_query, or optimize_query.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this tool versus alternatives, no prerequisites, and no exclusions. An agent must infer the intended context entirely from the one-line purpose.

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.