Skip to main content
Glama

List FastAPI docs pages

list_pages
Read-onlyIdempotent

Lists FastAPI documentation pages, optionally filtered by a section prefix, so assistants can discover available pages for retrieval or citation.

Instructions

List documentation pages, optionally only those under a section.

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

Input Schema

NameRequiredDescriptionDefault
prefixNoOptional section filter, e.g. 'tutorial/security' or 'advanced'

Output Schema

NameRequiredDescriptionDefault
countYes
pagesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and a closed-world hint, so the safety profile is fully covered by structured data. The description contributes only the optional-filter behavior and says nothing about result ordering or completeness, which is a modest addition.

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?

A single front-loaded sentence with no filler, and the optionality is signaled early. It is efficient, though the terseness borders on under-specification for a tool that could enumerate a large doc tree.

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?

With one optional parameter, full schema coverage, rich annotations, and an output schema handling return values, the description covers everything needed to invoke it correctly. Only ordering and output size expectations are unaddressed, and those are marginal given the output schema.

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 optional `prefix` parameter is fully documented with an example, so the schema does the heavy lifting. The description's word "section" loosely aligns with `prefix`, adding only mild framing rather than new syntax or matching semantics.

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?

The description states a specific verb and resource ("List documentation pages") plus the scope modifier of optional section filtering, which is enough to distinguish it from search_docs and get_page by name. It stops short of explicitly naming those siblings or contrasting behavior.

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?

Usage is implied by the word "optionally" — you may call it with no arguments to get everything, or narrow it — but the description never states when to prefer this over search_docs or when a single page should be fetched with get_page. Adequate but leaves routing to the agent.

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

Deploy Server

Other Tools