Skip to main content
Glama
Skeego

opendata-mcp

by Skeego

list_directory_v1_directories_get

Fetch and analyze a web directory listing to extract files and subdirectories, then get a suggested next action like 'discover' for data files or 'browse' for subdirectories.

Instructions

GET /v1/directories (public) — List Directory — List and analyze a web directory.

Fetches the directory listing from the provided URL, parses the content to extract file and subdirectory entries, and analyzes the contents to suggest appropriate next actions.

The response includes a suggested_action field:

  • "discover": Directory contains data files ready to be added as datasets

  • "browse": Directory contains subdirectories to explore further

  • "mixed": Directory contains both data files and subdirectories

Results are cached for 5 minutes to reduce load on remote servers. Use refresh=true to bypass the cache and fetch fresh data.

Args: request: FastAPI request for getting client IP url: URL of the directory to list (must be a valid HTTP/HTTPS URL) refresh: If true, by…

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesURL of the directory to list
refreshNoBypass cache and fetch fresh data
Behavior4/5

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

With no annotations, the description adequately discloses caching (5 minutes), refresh capability, and the analysis/suggestion feature. It could mention rate limits or authorization, but for a public GET endpoint, it's reasonably transparent.

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 well-structured with sections for endpoint, behavior, suggested actions, caching, and args. It is slightly verbose but each part adds 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?

Without an output schema, the description partially covers return fields (suggested_action) but does not detail the full response structure, such as the list of files and directories. Could be more complete.

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 baseline is 3. The description adds that url must be a valid HTTP/HTTPS URL and explains refresh, but also mentions a 'request' parameter not in schema, which may confuse.

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 it lists and analyzes a web directory, parsing content and suggesting next actions. It distinguishes itself from sibling tools like discover_datasets by focusing on any web directory URL.

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 listing directories and mentions caching behavior, but does not explicitly state when to avoid using this tool or compare to alternatives like discover_datasets or search_datasets.

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/Skeego/opendata-mcp'

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