Skip to main content
Glama

vault_write

Écrit un fichier privé chiffré (encoding: utf8 ou base64). Requête MCP limitée à 256 Kio (≈ 196 Ko de fichier en base64) : au-delà, utilise l'API REST PUT /api/vault/.

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": {
      "path": "<path>",
      "content": "<content>"
    },
    "name": "vault_write"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
contentYes
encodingNoutf8

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose two real behavioral traits: contents are privately encrypted, and the call is size-capped with a documented escape hatch. However, it says nothing about whether an existing file at the same path is overwritten, what permissions/auth are needed, or what the response contains — all material for a mutation tool.

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?

Two compact sentences, zero filler: the operation is stated first, then the size constraint and fallback. The parenthetical base64 conversion removes the need for the caller to compute the limit themselves.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a three-parameter write with no annotations and no output schema, the definition covers the operation, the encoding choice, and the hard request ceiling with a workaround. Overwrite semantics would be the one worthwhile addition, but nothing needed to issue a correct call is absent.

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 0%, so the description must compensate: it explains the 'encoding' enum values and, crucially, clarifies why the 256 KiB request cap matters despite content.maxLength being 7,000,000. It adds nothing about 'path' formatting or content constraints, leaving two of three parameters undocumented beyond their types.

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 description names a specific verb and resource ('Écrit un fichier privé chiffré') and adds the supported encodings, so an agent immediately knows this is the write counterpart to vault_read/vault_delete. It stops short of explicitly contrasting itself with those siblings, which keeps it out of the top band.

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 a concrete operating threshold (MCP requests capped at 256 KiB, ~196 KB of file in base64) and names the alternative path for exceeding it (REST PUT /api/vault/<chemin>). What is missing is guidance about overwriting existing files or when to use this versus other vault operations, so exclusions are only partially covered.

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.