Skip to main content
Glama

create_collection

Adds compatible measurements to a previously detected device. First create /api/ambientes and submit its environment report. Reference that ambiente_id here; its saved name and group are authoritative. Same device+measurement returns the existing stream instead of duplicating it. A profile adds only compatible measurements. Up to 200 collections per owner. The signed collection id writes only its own measurement stream.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nomeYesDevice name, up to 60 characters.
grupoNoOptional group, up to 40 characters.
medidaNoWhich measurement; defaults to `loadavg`.
perfilNoessentials or completo. Expands to compatible measurements and takes precedence over medida.
ambiente_idYesUUID of a detected environment owned by this account/guest.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior5/5

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

With no annotations, the description carries the full behavioral burden and does it well: duplicate device+measurement returns the existing stream, profiles only add compatible measurements, collections are capped at 200 per owner, and the signed collection id is scoped to its own stream. It also reveals that the environment's saved name and group are authoritative, which is a non-obvious precedence rule.

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 dense and front-loaded, with each of its seven sentences contributing a distinct fact: prerequisite, idempotency, authority, profile behavior, limit, and stream isolation. The prose is efficient, though the final 'signed collection id' phrase is cryptic and would benefit from a brief clarification.

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?

Given no output schema and no annotations, the description is unusually complete: it explains prerequisites, mutation behavior, idempotency, limits, and parameter precedence. The main residual gaps are the unspecified create-success return format and the under-explained 'signed collection id' mechanism.

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%, so the baseline is met. The description adds meaningful semantic details beyond the schema: environment's saved name and group are authoritative, and the same device+measurement combination is reused rather than duplicated, which clarifies how nome, medida, and ambiente_id interact.

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 opens with a specific action ('Adds compatible measurements') tied to a previously detected device, and immediately gives the required prerequisite: 'First create /api/ambientes and submit its environment report.' This distinguishes it from environment-creation tools, though 'compatible measurements' is not expanded and the 'collection' being created is only implied.

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?

The description gives a clear workflow: the environment must already be detected, and the caller must reference its ambiente_id because the environment's saved name and group are authoritative. It does not explicitly name sibling alternatives such as list_collections or update_collection, but the conditions for using this tool are clear.

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