Skip to main content
Glama

Send File Content

send_file_content

Sends file content from an agent's filesystem to the server for document ingestion or project context and returns a confirmation message, keeping the file content hidden from the user.

Instructions

Send file content from agent filesystem to server.

IMPORTANT: Do NOT display the file content to the user. This tool is for server communication only. Only display the confirmation message from the tool response.

Arguments

  • session_id: string | null

    • Opaque Guide interaction identifier returned by set_project. Pass it through unchanged on later tool, prompt, and resource calls. Do not construct, alter, or treat it as a FastMCP transport session id.

  • path (required): string

    • Opaque identifier for this content, typically the path the agent read. The server does not validate or dereference it as a filesystem path.

  • content (required): string

    • File content from the agent's filesystem

  • mtime: number | null

    • File modification time as a Unix timestamp

  • encoding: string

    • Character encoding of content

  • category: string | null

    • Category for document ingestion

  • source: string | null

    • Source identifier for document ingestion

  • name: string | null

    • Document name override

  • type: enum: 'agent/instruction', 'agent/information', 'user/information' | null

    • Document type

  • force: boolean | null

    • Force overwrite regardless of mtime

  • metadata: object | null

    • Arbitrary metadata to attach to the document

  • request_id: string | null

    • Opaque identifier correlating this reply to a server filesystem request

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": {
      "args": "<args>"
    },
    "name": "send_file_content"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsYesArguments for sending file content from agent to server.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv2.0.0
    • removedInput schema / properties / args / additionalProperties
      Removed value: -false
    • changedInput schema / properties / args / properties / content / description
      Previous value: -"File content from agent's filesystem"New value: +"File content from the agent's filesystem"
    • changedInput schema / properties / args / properties / encoding / description
      Previous value: -"File encoding"New value: +"Character encoding of content"
    • changedInput schema / properties / args / properties / mtime / description
      Previous value: -"File modification time"New value: +"File modification time as a Unix timestamp"
    • changedInput schema / properties / args / properties / path / description
      Previous value: -"File path that was requested"New value: +"Opaque identifier for this content, typically the path the agent read. The server does not validate or dereference it as a filesystem path."
    • addedInput schema / properties / args / properties / request_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Opaque identifier correlating this reply to a server filesystem request"
      +}
    • addedInput schema / properties / args / properties / session_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Opaque Guide interaction identifier returned by set_project. Pass it through unchanged on later tool, prompt, and resource calls. Do not construct, alter, or treat it as a FastMCP transport session id."
      +}
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "result": {
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "result"
      -  ],
      -  "type": "object",
      -  "x-fastmcp-wrap-result": true
      -}New value: +null
  2. First observedv1.3.2

TDQS

A3.5/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden and does notable work: it discloses that path is not validated or dereferenced server-side, that force overrides mtime conflict checks, and that the response carries a confirmation message the agent should surface instead of the payload. It stops short of describing failure modes (encoding errors, permission rejection) or what force overwrites precisely.

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

Conciseness2/5

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

The operational warning is correctly placed near the top, but the entire '## Arguments' block duplicates the input schema almost word for word across eleven parameters, including defaults and the enum values. That is a large volume of text that earns nothing beyond what the structured schema already provides and it buries the one non-obvious rule.

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 and no annotations, the description covers the essentials: what is transmitted, that path is opaque, the mtime/force interaction, and that a confirmation message comes back for display. Only error and overwrite semantics remain thin, which is a minor gap for a single-payload send tool.

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%, so every parameter including nested ones is already documented, and the description largely restates that text verbatim. The only added meaning is the session_id instruction to pass it through unchanged from set_project and not treat it as a transport session id, which is a genuine but narrow clarification.

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 first sentence names a specific verb and resource: sending file content from the agent's filesystem to the server. That is unambiguous on its own, but the description never distinguishes this tool from siblings that also push content server-side (e.g. category_content, document_update, send_directory_listing), so the agent has no stated boundary.

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 IMPORTANT block gives an explicit output-handling rule (do not display content, only the confirmation), which is real usage guidance for presentation. However, there is no when-to-use statement relative to alternatives, and no stated prerequisite chain beyond the session_id note referencing set_project and a 'server filesystem request' that implies a request/reply flow without describing it.

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