Skip to main content
Glama
SmartBear

SmartBear MCP server

Official
by SmartBear

Swagger: List Table Of Contents

swagger_list_table_of_contents
Read-onlyIdempotent

Retrieve the table of contents for a specific section within a SmartBear product portal, with options to embed related entities and paginate results.

Instructions

Get table of contents for a section of a product within a portal.

Toolset: Table Of Contents

Parameters:

  • sectionId (string) required: Section ID - unique identifier for the section within the product

  • embed (array): List of related entities to embed in the response - e.g., ['swaggerhubApi'] to include SwaggerHub API details

  • page (number): Page number for paginated results - specifies which page of results to retrieve (default is 1)

  • size (number): Number of items per page for pagination - controls how many results are returned per page (default is 20)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoPage number for paginated results - specifies which page of results to retrieve (default is 1)
sizeNoNumber of items per page for pagination - controls how many results are returned per page (default is 20)
embedNoList of related entities to embed in the response - e.g., ['swaggerhubApi'] to include SwaggerHub API details
sectionIdYesSection ID - unique identifier for the section within the product
Behavior3/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, so the safety profile is clear. The description adds parameter details but does not disclose additional behavioral traits beyond what annotations provide.

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 description is concise with one sentence for purpose, a toolset header, and a clean parameter list. No superfluous content, though the toolset line adds categorization value.

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

Completeness3/5

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

The description covers input parameters well but lacks output structure details and does not mention prerequisites (e.g., existence of portal/product/section). Given no output schema, this is a gap.

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%, so the baseline is 3. The description repeats the schema's parameter descriptions without adding new meaning, thus not exceeding the baseline.

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 states the tool retrieves the table of contents for a section of a product within a portal, using a specific verb and resource. It distinguishes itself from siblings like swagger_create_table_of_contents and swagger_delete_table_of_contents.

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 implies usage for reading table of contents but provides no explicit guidance on when to use this tool versus alternatives (e.g., swagger_list_portal_product_sections). No when-not or alternative advice is given.

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

Install Server

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