Skip to main content
Glama
SmartBear

SmartBear MCP server

Official
by SmartBear

Swagger: Get Document

swagger_get_document
Read-onlyIdempotent

Retrieve document content and metadata by ID to access HTML or Markdown from table of contents items.

Instructions

Get document content and metadata by document ID. Useful for retrieving HTML or Markdown content from table of contents items.

Toolset: Documents

Parameters:

  • documentId (string) required: Document UUID - unique identifier for the document

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
documentIdYesDocument UUID - unique identifier for the document

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNo
typeNo
sourceNo
contentNo
createdAtNo
updatedAtNo
Install Server

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, and non-destructive behavior. The description adds useful behavioral context by specifying the content types (HTML or Markdown) and source context (table of contents items), which goes beyond the structured annotations.

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 core purpose and use case are front-loaded in two concise sentences. The parameter listing is redundant with the schema but not overly bloated, keeping the description easy to scan.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple one-parameter read tool with rich annotations and an output schema, the description covers what the tool does, when to use it, and what content it returns. Nothing necessary for correct invocation is missing.

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 description coverage is 100%, and the description only repeats the schema's parameter documentation without adding extra meaning. This matches the baseline for a single fully documented parameter.

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?

States a specific verb and resource: 'Get document content and metadata by document ID.' The additional note about retrieving HTML or Markdown from table of contents items clearly distinguishes it from sibling tools like swagger_update_document or swagger_get_api_definition.

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 clear context by saying it is useful for retrieving HTML or Markdown content from table of contents items. It does not explicitly name alternatives or when-not-to-use, but the use case is specific enough to guide selection.

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/SmartBear/smartbear-mcp'

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