Skip to main content
Glama

generate_query_template

Generate a complete GraphQL query template for any Gen3 data type. Specify the entity name and optionally include relationships or limit fields for a customizable starting point.

Instructions

Generate a ready-to-use GraphQL query template for any data type.

Takes an entity name (from get_schema_summary) and creates a complete, valid GraphQL query with the most useful fields and relationships. This gives you a working starting point that you can customize.

Args: entity_name: Name of the data type to query (e.g., 'subject', 'sample') include_relationships: Whether to include related data types in template max_fields: Maximum number of fields to include (controls template size)

Returns: A complete GraphQL query template ready to use or customize. Copy the template from data.template and modify as needed.

Workflow: get_schema_summary → get_schema_entity → You are here → validate_query → execute_graphql

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
entity_nameYes
include_relationshipsNo
max_fieldsNo
Behavior3/5

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

No annotations exist, so description carries the burden. It explains that the output is a template with useful fields and relationships, and mentions the output structure (data.template). However, it lacks details on error cases (e.g., invalid entity) or performance implications.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise and well-structured. It starts with the main purpose, then lists parameter descriptions, and ends with the workflow placement. Every sentence adds value without redundancy.

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 three parameters, no output schema, and no annotations, the description sufficiently covers purpose, parameters, return value, and context within the sibling workflow. It enables an agent to use the tool effectively.

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?

With 0% schema description coverage, the description provides clear explanations for all three parameters: entity_name with examples, include_relationships stating its purpose, and max_fields describing its control over template size. This adds value beyond the raw 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 it generates a ready-to-use GraphQL query template for any data type, with specific verb+resource. It explicitly places itself in a workflow sequence (get_schema_summary → get_schema_entity → here → validate_query → execute_graphql), distinguishing it from siblings.

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?

Provides the intended workflow and prerequisite (entity name from get_schema_summary). While it doesn't explicitly exclude alternatives, the workflow gives clear context on when to use this tool in the pipeline.

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/delocalizer/gen3-mcp'

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