Skip to main content
Glama

Save file

save_file

Save a user-shared file to private AdChat storage: base64 up to 3 MB, or a public HTTPS URL up to 20 MB (images 50 MB). Local files on disk: start_upload. For the user to upload in a browser: get_upload_link.

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

Input Schema

NameRequiredDescriptionDefault
urlNo
nameYes
account_idNoe.g. act_1234567890
content_base64No

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false and openWorldHint=false, so the safety profile is covered. The description adds operationally decisive behavior: hard payload ceilings per source type (3 MB base64, 20 MB URL, 50 MB images) and that storage is private to AdChat. Undisclosed: what happens on name collision, whether the call requires account authorization, and what identifier comes back.

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 core action, then limits, then routing alternatives. Nothing redundant; the telegraphic fragment style ('Local files on disk: start_upload.') is terse but unambiguous.

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 4-parameter write tool with no output schema and thin schema descriptions, the description covers the decisions that matter: which source field to use, size ceilings, and which sibling handles other ingestion paths. It stops short of stating that one of url/content_base64 must be supplied and what the call returns, but nothing an agent needs is seriously missing.

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 only 25% (only account_id has a description), so the description must carry the load and does: it explains that url must be a public HTTPS URL with a 20 MB cap and that content_base64 has a 3 MB cap, which is the info an agent needs to pick between the two mutually exclusive sources. Caveat: it never explains `name` semantics, and the stated 3 MB base64 cap conflicts with the schema's maxLength of 29,360,128, leaving the true limit ambiguous.

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, resource and destination: 'Save a user-shared file to private AdChat storage.' The two competing entry points are named and contrasted (start_upload for disk files, get_upload_link for browser uploads), so the agent can route without opening sibling schemas.

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?

Gives explicit alternatives with the condition selecting each: local files on disk → start_upload, browser upload → get_upload_link. Combined with the size/source constraints, an agent can decide between all three ingestion paths from this description alone.

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.