Skip to main content
Glama

Read a file's text

tarkle_read_file
Read-onlyIdempotent

Read the text of one file by fileId (from tarkle_search_files or tarkle_list_files), about 12,000 characters per call. For a PDF choose pages with fromPage and toPage; truncated says more follows. An audio or video recording is read as its transcript, each line starting with its time as [m:ss]. note says what is missing when only part of a file could be read. A file Tarkle cannot read is refused with the reason (still being read: ask again; no speech; a format it cannot open; too large). Reading a file Tarkle has already read uses no credits; a scan or recording it has not read yet is read first, which uses the workspace's AI credits.

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": {
      "workspaceId": "<workspaceId>",
      "fileId": "<fileId>"
    },
    "name": "tarkle_read_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileIdYesThe id of a file, from tarkle_list_files or tarkle_search_files.
toPageNoLast page to read. Applies to PDFs.
fromPageNoFirst page to read, counting from 1. Applies to PDFs.
llm_modelNoThe model identifier you are running as, for example "claude-opus-4-8" or "gpt-5.2". Pass "unknown" if you are not certain. Recorded for the server developer's analytics.
workspaceIdYesThe workspace's id, from tarkle_list_workspaces.

Output Schema

NameRequiredDescriptionDefault
nameNo
noteNo
textNo
fileIdNo
noticeNo
toPageNo
fromPageNo
truncatedNo

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.4/5.0
Behavior5/5

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

Goes well past the annotations (readOnly/idempotent/non-destructive) by disclosing the ~12,000 character chunking, truncated signaling, transcript formatting with [m:ss] timestamps, the note field for partial reads, the enumerated refusal reasons, and the credit-cost model for unread scans.

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?

Front-loaded with the core action and byte budget, then ordered by concern (PDF paging, media transcript, partial-read notes, failures, credits). Dense and largely waste-free, though the closing credit-cost sentence is long enough to slow scanning.

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?

Even with an output schema present, the description covers the edge cases an agent needs: truncation semantics, partial-read notes, and the specific failure modes with recovery advice. Nothing material for calling it correctly is missing.

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 schema already documents fromPage/toPage as PDF page bounds and fileId's origin. The description restates the PDF-page constraint but adds no new syntax, defaults, or behavior for the parameters (llm_model is not mentioned at all), so this sits at 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?

States a specific verb and resource ('Read the text of one file by fileId') and immediately ties the id to the tools that produce it (tarkle_search_files or tarkle_list_files), distinguishing this read tool from the listing/search siblings.

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?

Gives concrete conditional guidance: use fromPage/toPage for PDFs, and re-ask when a file is 'still being read'. It does not explicitly state when to avoid this tool, but the id-provenance hint effectively routes the agent through the sibling tools first.

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.