Skip to main content
Glama

files_ingest

Save and index a file into the knowledge base. Use this when the user asks to save, store, or remember a document. The file will be processed (OCR if needed) and indexed for future search.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagsNoOptional list of tags for categorization (e.g., ['presentation', 'dextrade']).
titleNoHuman-readable title for the file (e.g., 'Project Presentation', 'Q1 Report'). If not provided, uses original filename.
file_idYesID of the file to ingest (from attachment_file_ids in context).
thread_idNoOptional thread ID to associate the file with. If not provided, uses context thread.
descriptionNoOptional description of the file contents.
in_workspaceNoRun this one call in this workspace id instead of the session's. Nothing is stored; other sessions are not affected.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / in_workspace
      Added value: +{
      +  "description": "Run this one call in this workspace id instead of the session's. Nothing is stored; other sessions are not affected.",
      +  "type": "integer"
      +}
  2. Added
  3. Removed
  4. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare the mutation profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false, openWorldHint=false), so the safety picture is covered. The description adds useful post-condition context, noting the file is processed with OCR if needed and indexed for future search. However, it does not surface the non-idempotent consequence (re-ingesting the same file may create duplicates), which is the most behaviorally significant trait here.

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?

Three short sentences, front-loaded with the action, then the trigger, then the behavioral consequence. No filler and no repetition of structured fields.

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?

For a six-parameter mutation tool with full schema coverage and annotations covering the safety profile, the description covers purpose, trigger, and post-processing well. The only gap is the lack of any idempotency or duplication warning, which matters given idempotentHint=false.

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% for all six parameters, including defaults and the file_id source ('from attachment_file_ids in context'), so the schema carries the parameter burden. The description adds no parameter-level detail beyond that, 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?

States a specific verb and resource: 'Save and index a file into the knowledge base', which tells the agent exactly what happens. It does not, however, distinguish itself from closely-named siblings such as files_upload, files_create_upload_url, files_complete_upload, collections_add_file, or agents_add_file, so the agent must infer which ingest path applies.

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 a clear trigger condition: 'Use this when the user asks to save, store, or remember a document.' This is solid usage context. It stops short of the 5 level because it names no alternative or exclusion (e.g., when to use files_upload or agents_add_file instead).

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.