Skip to main content
Glama

xbrl_extract_facts

Read-onlyIdempotent

Extract and filter XBRL facts from a loaded filing using criteria like concept, period, dimensions, and units. Returns paginated results with full details.

Instructions

Extract and filter XBRL facts from a loaded filing.

Supports filtering by concept name, period type, dimensions, units, and more. Returns paginated results with full fact details including values, contexts, periods, and dimensional breakdowns.

The filing must be loaded first with xbrl_load_filing.

Args: params (ExtractFactsInput): Filtering and pagination parameters.

Returns: str: JSON with filtered facts, total count, and pagination info.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true. Description adds that results are paginated and include full fact details, which complements annotations but doesn't significantly expand beyond them.

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?

Description is well-structured with paragraphs for overview, filtering, and returns. It is concise without being terse, though could be slightly more compact.

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?

Given the tool's complexity (many filters, pagination) and the presence of an output schema, the description sufficiently covers what the tool does, its prerequisites, and the expected output format.

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 descriptions cover all parameter details (coverage is high), so the description adds no additional parameter-level info. Baseline 3 is appropriate.

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 extracts and filters XBRL facts from a loaded filing, specifying verb, resource, and precondition. It distinguishes from siblings by focusing on filtering and pagination.

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?

Explicitly states prerequisite (filing must be loaded with xbrl_load_filing). Does not explicitly exclude scenarios or mention alternatives, but the precondition is a strong usage guideline.

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/TheKingHippopotamus/Arelle-MCP'

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