Skip to main content
Glama

Add record

add_record

Add a record to a collection as the owner (e.g. seed products or menu items).

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": {
      "site": "<site>",
      "collection": "<collection>",
      "data": "<data>"
    },
    "name": "add_record"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYes
siteYesSite slug (e.g. "kopitiam-muar") or id
collectionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=false, so safety is covered. The description usefully adds that the caller acts 'as the owner' (an authorization/ownership context) but says nothing about duplicate handling, idempotency, or what a failed insert looks like.

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?

A single front-loaded sentence with no filler; every clause carries information.

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

Completeness2/5

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

For a three-required-parameter mutation with a free-form nested 'data' object and no output schema, the description is too sparse. An agent still has to guess how document fields map to the target collection and what the call returns.

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

Parameters2/5

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

Schema coverage is only 33% — only 'site' has a description — and the description compensates for none of it. It never explains what 'collection' refers to (a defined collection slug?) nor what shape 'data' must take relative to the collection's fields.

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 ('Add a record to a collection') and gives a concrete use case (seeding products or menu items), which clearly separates it from siblings like delete_record and query_records. The phrase 'as the owner' is ambiguous but does not obscure what the tool does.

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

Usage Guidelines3/5

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

The seeding example implies when this is appropriate, but there is no explicit statement of when not to use it, no mention of the related define_collection/update flow, and no prerequisites or alternatives named.

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