Skip to main content
Glama

put_item

PUT /items/key: write the item at key (e.g. "42", no leading /), creating it or replacing its content. Text is a string and a record a JSON object, each up to 8 KB; an image its bytes as base64, kept as a WebP of at most 512 px (its width and height come back); an emb a list of floats from the grid's model. DNA embeds the rest itself and keeps it only to embed it again; results and listings never return it. type is one of text/plain, application/json, image/png, image/jpeg, image/webp, image/gif, application/vnd.hashgrid.emb+json; leave it out for text, a record or an emb, which DNA tells apart, not for an image. Group items under a prefix (e.g. "tools/42") to search groups apart. Returns the item: its key, type, size, etag, ctime and mtime.

Input Schema

NameRequiredDescriptionDefault
keyYes
typeNo
api_keyNo
contentYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and discloses important behavior: overwrite/upsert semantics, 8 KB content limits, image conversion to WebP at max 512 px, embed retention behavior, and returned fields. It omits authentication requirements, error behavior, and some mutation details, but is otherwise rich.

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

Conciseness4/5

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

The description is front-loaded with the operation and key format, and most sentences carry specific, relevant information about content types and constraints. It is dense and somewhat jargon-heavy, but there is little obvious waste for a tool with this much content-type behavior.

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?

An output schema exists, so return-value documentation is not strictly required, but the description still summarizes returned fields. It covers content formats, type rules, key grouping, and embed handling well; the main gap is the undocumented api_key parameter and lack of auth/error context.

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 description coverage is 0%, so the description must compensate; it explains key format and prefix grouping, content formats for text/record/image/emb, and the allowed type values plus when to omit type. It does not mention the api_key parameter at all, leaving one parameter undocumented in both schema and description.

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 opens with 'PUT /items/key: write the item at key', naming a specific verb and resource, and clarifies that it creates or replaces content. That makes the upsert behavior distinct from read/delete/list siblings without needing their definitions.

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 clear usage context by saying the tool creates or replaces the item at a key, and it adds guidance about grouping items under prefixes. It does not explicitly name sibling alternatives or state when not to use this tool, so it falls short of full when/when-not 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