Skip to main content
Glama

spec_load

Load an OpenAPI or Swagger spec from a local file path, converting Swagger 2.0 automatically. Use it to query and explore API definitions without manual conversion.

Instructions

Load an OpenAPI spec from a local file path. Converts Swagger 2.0 automatically.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
spec_pathYesAbsolute or relative path to the OpenAPI/Swagger spec file
force_reloadNoForce reload even if cached
Install Server

TDQS

A3.8/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 behavioral burden. It does disclose two useful behaviors: reading from a local path and automatically converting Swagger 2.0. Yet it omits meaningful statefulness around the force_reload parameter, such as caching behavior, and does not mention side effects, errors, or whether successful loading returns the spec or stores it for subsequent sibling calls.

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?

Two short sentences with no filler. The core action is front-loaded, and the Swagger conversion note earns its place by adding compatibility information.

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?

With no output schema and no annotations, the description should explain what 'loading' means: does it return the parsed spec, mutate internal state, or persist something for sibling tools? The force_reload parameter hints at caching, but the description is silent on that behavior, leaving an agent to guess the postcondition and return value.

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?

Schema description coverage is 100%, so baseline is 3. The description adds value beyond the schema by specifying that the path is local and that Swagger 2.0 input is accepted and converted automatically, enriching the meaning of spec_path beyond its bare type/description.

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 uses a specific verb ('Load') with a concrete resource ('OpenAPI spec') and a clear source ('local file path'), making the tool's function immediately identifiable. It also distinguishes itself from the sibling endpoint inspection tools by targeting the spec itself rather than operations on it.

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 phrase 'from a local file path' and the automatic Swagger 2.0 conversion imply when this tool is appropriate: when a caller needs to ingest a local spec file. However, it does not explicitly state when to prefer this over alternatives, when not to use it, or any prerequisites for the siblings that operate on loaded specs.

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

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/mjmarrazzo/spectacle-mcp'

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