Skip to main content
Glama

check_api

Verifies code against OpenAPI schemas, identifying invalid endpoints, wrong methods, missing parameters, deprecations, and version conflicts.

Instructions

Verify agent/generated code against indexed OpenAPI schemas and documentation. Detects invalid endpoints, wrong HTTP methods, missing required parameters, deprecations, removed APIs, version syntax conflicts, and response assumptions. Distinguishes verified, warning, mismatch, and insufficient_evidence.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeNoThe generated code snippet, route handler, or API client call to verify.
libraryNoTarget library or SDK name (e.g. "stripe", "next").
projectNoWorkspace root directory to auto-resolve project dependencies and versions.
snippetNoAlternative alias for code snippet.
versionNoTarget documentation/API version (e.g. "v14", "v15", "1.0"). If omitted, project version is auto-detected.
filePathNoOptional path of the file being verified for context.
languageNoProgramming language of the code (e.g. "typescript", "javascript", "python", "curl").

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed2 schema fields changedv0.1.7
    • addedInput schema / properties / snippet
      Added value: +{
      +  "description": "Alternative alias for code snippet.",
      +  "type": "string"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "code"
      -]
  2. First observedv0.1.4

TDQS

A4.1/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 of disclosing behavior. It mentions the types of checks performed and the possible outcomes, but does not state whether the tool has side effects, requires network access, or is read-only. The description is more transparent than a generic 'validates code,' but lacks explicit behavioral details.

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 succinct and well-structured, consisting of two sentences that cover purpose, checks, and output categories. It avoids unnecessary fluff and is easy to parse quickly. The structure is logical: first states the action, then the specifics, then the result types.

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?

The description gives a good overview of the tool's functionality and mentions the output categories, providing some context for expected results. However, it does not describe the exact return format or whether the tool returns a detailed report, a simple status, or includes error messages. Given the absence of an output schema, a bit more detail on the return structure would be beneficial.

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?

All seven parameters have clear, descriptive text in the schema. For example, 'snippet' is noted as an alternative alias for 'code,' and 'project' is described as a workspace root for auto-resolving dependencies. The descriptions add meaningful context beyond the parameter names, making it easy for an agent to understand how to populate them.

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 specifies the tool's purpose: to verify code against indexed OpenAPI schemas and documentation, listing specific checks (invalid endpoints, wrong HTTP methods, missing parameters, etc.) and output categories (verified, warning, mismatch, insufficient_evidence). This distinguishes it from sibling tools like get_documentation_map or diff_docs, which serve different functions.

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

Usage Guidelines3/5

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

The description explains what the tool does but does not explicitly state when to use it versus alternatives. It implies usage for verification tasks, but lacks direct guidance such as 'use this when you need to validate generated code' or 'not for retrieving documentation.' An agent can infer the intended use, but explicit instructions would improve clarity.

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

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/HakashiKatake/docorbit'

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