Skip to main content
Glama

datastore_get_document

Read-only

Get the full content of a datastore document by file name or file id. Works for provisioned reference documents (from datastore_discover) and for files in this company's own datastores (the id or fileName from datastore_get_files). Returns the complete content; reference documents also return measures, thresholds, and drill paths.

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

Input Schema

NameRequiredDescriptionDefault
fileIdNoFile id from datastore_get_files
fileNameNoFile name from datastore_discover or datastore_get_files (e.g. "ap-aging-metrics.md"). A file id is also accepted.
datastoreIdNoOptional datastore id (from datastore_list) to narrow search
datastoreSlugNoOptional reference datastore slug to narrow search (e.g. "ap-health-framework")

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / datastoreId
      Added value: +{
      +  "description": "Optional datastore id (from datastore_list) to narrow search",
      +  "type": "string"
      +}
    • changedInput schema / properties / datastoreSlug / description
      Previous value: -"Optional datastore slug to narrow search (e.g. \"ap-health-framework\")"New value: +"Optional reference datastore slug to narrow search (e.g. \"ap-health-framework\")"
    • addedInput schema / properties / fileId
      Added value: +{
      +  "description": "File id from datastore_get_files",
      +  "type": "string"
      +}
    • changedInput schema / properties / fileName / description
      Previous value: -"File name from datastore_discover results (e.g. \"ap-aging-metrics.md\")"New value: +"File name from datastore_discover or datastore_get_files (e.g. \"ap-aging-metrics.md\"). A file id is also accepted."
    • removedInput schema / required
      Removed value: -[
      -  "fileName"
      -]
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

The annotations already establish readOnlyHint=true, destructiveHint=false, and a closed-world scope, so safety is covered. Beyond that, the description adds real value by explaining that reference documents additionally return measures, thresholds, and drill paths, which tells the agent what to expect in the payload for each document class.

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?

Three sentences, all front-loaded with the core purpose first and the document-class distinction second. Nothing is redundant, though the final sentence about measures/thresholds/drill paths could be tightened slightly without losing meaning.

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 no output schema present, the description carries the burden of describing returns, and it does so at a high level (complete content, plus measures/thresholds/drill paths for reference docs). For a read-only lookup with fully documented parameters and annotations covering the safety profile, this is nearly complete; only the response envelope shape and error behavior for a missing document are unstated.

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%, and the schema itself documents fileId, fileName, datastoreId, and datastoreSlug including examples and the note that fileName accepts a file id. The description restates the file-name-or-id choice but adds no new syntax, precedence, or narrowing semantics beyond what the schema already provides, making the baseline 3 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 opens with a specific verb and resource ('Get the full content of a datastore document') and immediately qualifies the two lookup keys ('by file name or file id'). It also distinguishes itself from related tools by naming where ids come from (datastore_discover, datastore_get_files), so an agent can tell it apart from datastore_get_chunks or datastore_query without opening a schema.

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?

It gives clear context for use: retrieving the complete content of either a provisioned reference document or a file in the company's own datastores, and it points at the tools that produce the identifiers. It stops short of explicit exclusions (e.g. 'use datastore_get_chunks instead when you only need a passage'), so the alternative-routing guidance is implied rather than stated.

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.