Skip to main content
Glama

octopus_write

Save a new file the agent has produced (a report, a summary, generated code, etc.) into Octopus. If path is omitted the file lands in /agent/{session}/ — the convention that keeps agent output separate from user uploads. Provide ONE of content_text (UTF-8) or content_base64 (binary).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesFilename including extension.
pathNoFolder to write into. Defaults to /agent/{session}/.
tagsNoOptional tags.
mime_typeNoOptional. Sniffed from extension if omitted.
content_textNoUTF-8 content (use for text/markdown/json). Provide exactly ONE of content_text or content_base64. Max 25 MiB.
content_base64NoBase64 content (use for binary). Decoded size max 25 MiB.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior3/5

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

Annotations indicate readOnlyHint=false and destructiveHint=false, so the description's write operation is consistent. The description does not mention whether overwriting existing files is allowed, potential side effects, or any permissions required, leaving some behavioral details unspecified.

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?

The description is compact but information-dense, front-loading the core purpose and then covering key usage constraints without redundancy.

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?

The description is sufficiently complete for correct invocation: it explains path defaults, content selection, and size limits. It omits overwrite semantics and return behavior, but no output schema exists so return details are not required.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the description adds meaningful context beyond the schema by explaining the path default, the content exclusivity rule (exactly one of content_text/content_base64), the max size, and the MIME type fallback behavior.

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 clearly states the tool saves a new file the agent produced into Octopus, with a specific verb ('Save') and resource ('new file to Octopus'), distinguishing it from related tools like octopus_delete, octopus_read, and octopus_list.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly explains when to use it (for agent-produced files), the default path convention, and that exactly one of content_text or content_base64 must be provided, which is essential usage guidance.

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