Skip to main content
Glama

generate_integration

Generates ready-to-use code for integrating the Modernity API into your app, including authentication, error handling, and rate-limit retry logic.

Instructions

Generate ready-to-use code for integrating the Modernity API into an application. Produces working code with authentication, error handling, rate-limit retry logic, and best practices. Use this when a user wants code to call the API from their app, needs a quick start snippet, or is building a feature that uses live data.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "generate_integration"
  }
}

Input Schema

NameRequiredDescriptionDefault
endpointNoWhich endpoint to generate code for: 'recent', 'query', 'multi', 'live_sse', 'sources', 'snapshot', 'counts', 'analyze', 'full_client'. Default: 'recent'
languageNoTarget language/framework: 'python', 'javascript', 'typescript', 'curl', 'nextjs', 'react', 'node'. Default: 'python'
use_caseNoOptional: describe what you're building (e.g. 'crypto price dashboard', 'news monitoring bot', 'earthquake alert system') for tailored code

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It does disclose the shape of the output (working code including auth, error handling, rate-limit retry, best practices), which is genuinely useful. However, it never states that this is a side-effect-free read-only generation, nor what the return payload looks like (a single string? a file?), nor that no API credentials are needed to generate the code.

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?

Three sentences, front-loaded with the core action, and the trailing clause about 'building a feature that uses live data' extends the trigger conditions rather than padding. Minor redundancy between 'ready-to-use code' and 'working code', but nothing that wastes an agent's attention.

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 three-parameter, no-output-schema generation tool, the description covers what it produces and when to reach for it. The remaining gap is disambiguation from adjacent documentation/quickstart siblings, which is the one thing an agent might still get wrong.

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 coverage is 100% and all three parameters already carry descriptions including defaults and enum-like value lists, so the schema does the heavy lifting. The description adds no syntax, format, or interaction detail beyond it (e.g. whether use_case changes the endpoint selection). Baseline 3 is appropriate.

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 names a specific verb and resource — 'Generate ready-to-use code for integrating the Modernity API' — and enumerates what the artifact contains (auth, error handling, retry logic). It distinguishes itself from the data-returning siblings like get_recent_data or query_topic by being a code-generation tool, though it never names a sibling explicitly.

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 gives three concrete trigger conditions: user wants code to call the API, needs a quick-start snippet, or is building a live-data feature. That is clear when-to-use guidance, but there are no exclusions and no pointer to alternatives such as get_quickstart or get_api_docs, which an agent could reasonably confuse this with.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.