Skip to main content
Glama

List Extractions

list_extractions
Read-only

List OCR extractions filtered by project and date range. Failed extractions include error_message field indicating the failure reason (e.g. scan.error.inappropriate_content, scan.error.low_confidence).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "project_id": "<project_id>",
      "date_from": "<date_from>",
      "date_to": "<date_to>"
    },
    "name": "list_extractions"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of results to return (default: 20)
offsetNoNumber of results to skip for pagination (default: 0)
date_toYesEnd date in RFC3339 format, e.g. 2024-01-31T23:59:59Z (required)
date_fromYesStart date in RFC3339 format, e.g. 2024-01-01T00:00:00Z (required)
project_idYesProject UUID (required)
latest_onlyNoIf true, exclude extractions that were superseded by a later re-extraction of the same file (superseded_by is set). Default: false

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

The annotations already establish that this is a safe read-only, closed-world operation, so the bar is lower. The description goes beyond them by disclosing that failed extractions carry an error_message field with enumerated failure codes, which is genuinely useful signal for interpreting results. It still says nothing about pagination limits or the overall result envelope, which matters given there is no output schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tight sentences with the core purpose front-loaded and the error-field detail following as supporting context. Nothing is wasted and nothing is buried.

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?

For a six-parameter list tool with no output schema, the agent still lacks a sense of what an extraction record contains beyond the error_message field, and pagination behavior is only implied. Annotations cover the safety profile, but return-value context is only partially addressed.

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%, including the non-obvious latest_only supersession semantics and RFC3339 date formats, so the schema is doing the documentation work. The description adds no parameter-level meaning beyond restating that project and date range are the filters, making the baseline 3 appropriate.

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 uses a specific verb and resource ("List OCR extractions") and scopes it to project and date range, which an agent can map directly onto the required parameters. It is clear but never names a sibling such as get_extraction or export_extractions to distinguish single-record retrieval or export from this list operation.

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 filtering scope (project + date range) implicitly tells the agent when this tool applies, and the failure-reason note hints at a debugging use case. However, there is no explicit when-to-use/when-not guidance and no pointer to get_extraction or export_extractions for narrower or bulk-retrieval needs.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources