Skip to main content
Glama

get_api_docs

Retrieve complete Modernity API endpoint documentation, including URLs, methods, parameters, schemas, authentication, error codes, and rate limits; filter by endpoint group or get the full reference.

Instructions

Get complete API endpoint documentation for building with the Modernity API. Returns endpoint URLs, HTTP methods, parameters, request/response schemas, authentication, error codes, and rate limit details. Use this when a user wants to integrate Modernity into their app, needs to know how an endpoint works, or is writing code that calls the API. You can request docs for a specific endpoint group or get the full reference.

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": "get_api_docs"
  }
}

Input Schema

NameRequiredDescriptionDefault
endpointNoFilter docs to a specific endpoint group: 'recent' (GET /v1/recent), 'query' (POST /v1/query), 'multi' (POST /v1/query/multi), 'live' (GET /v1/live SSE stream), 'sources' (GET /v1/sources), 'snapshot' (GET /v1/snapshot), 'counts' (GET /v1/counts), 'analyze' (POST /v1/analyze), 'keys' (POST /v1/keys), 'auth' (authentication flow), 'all' (complete reference). Default: 'all'

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A3.9/5.0
Behavior4/5

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

No annotations exist, so the description carries the full burden, and it does disclose the substantive return contents in detail, including auth, error codes, and rate limits. It also implies the read-only, static nature of the response, though it never states permissions or whether the docs reflect live vs. published state. Reasonably complete but short of exhaustive for an unannotated tool.

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 purpose, then the return payload, then the when-to-use conditions. The return-content enumeration is long but each item is informative for an agent deciding whether to call. Minor redundancy between the second and third sentences about requesting a group vs. the full reference.

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?

A one-optional-parameter tool with no output schema, so the description must explain what comes back — which it does in detail, including auth and rate-limit content that an integration-focused agent needs. Missing only explicit framing of the docs' scope/versioning, which is a small gap for this complexity.

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 the single 'endpoint' parameter already enumerates every accepted value in its description. The prose only restates the two usage modes ('a specific endpoint group' or 'the full reference') and adds no mapping or default semantics beyond the schema. 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?

States a specific verb+resource ('Get complete API endpoint documentation') and enumerates the payload contents (URLs, methods, parameters, schemas, auth, error codes, rate limits). An agent can tell this is a reference-documentation tool rather than a data-fetch tool. It does not explicitly contrast itself with documentation-adjacent siblings like get_quickstart, leaving some overlap to inference.

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?

Gives three concrete triggers: integrating Modernity into an app, needing to know how an endpoint works, or writing code that calls the API. Clearly distinguishes the two invocation modes (single endpoint group vs. full reference). No when-not guidance or named alternatives, so it stops short of a 5.

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