Skip to main content
Glama

Create record

create_record

Add a new record to a PocketBase collection by providing field values, with support for file uploads, related record IDs, and auth fields requiring password confirmation.

Instructions

Create a new record in a collection. Pass field values in data. For auth collections, include 'password' and 'passwordConfirm' (and usually 'email'). To upload files, list them in files (each maps a field name to a local file path). Relation fields accept a record id or an array of ids.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataNoField values for the new record.
filesNoOptional list of local files to upload into file fields.
expandNoComma-separated relations to expand in the response.
fieldsNoComma-separated fields to return.
collectionYesCollection id or name.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior3/5

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

With no annotations provided, the description carries the full burden. It does add useful behavioral context beyond the obvious mutation: auth fields required, file upload mechanism, and relation ID format. However, it does not disclose potential side effects, validation failures, permissions, or response behavior, leaving some uncertainty for a mutating 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?

The description is compact and front-loaded with the core purpose. Each sentence earns its place by addressing a distinct operational aspect (data, auth, files, relations) without extraneous wording or repetition of schema details.

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 five parameters (one required), the description covers the key invocation patterns needed to create records successfully. It explains the most complex parameter ('data'), special auth requirements, file uploads, and relation handling. Minor gaps exist around optional 'expand'/'fields' parameters and response format, but Schema descriptions already cover those names.

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 100%, so the baseline is 3. The description adds meaningful semantics beyond the schema: it explains that 'data' holds field values, specifically requires 'password' and 'passwordConfirm' for auth collections, defines how 'files' maps fields to local paths, and clarifies relation ID formats. This enriches parameter understanding.

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 starts with a specific verb and resource — 'Create a new record in a collection' — which immediately distinguishes it from siblings like create_collection or update_record. It makes the tool's primary function explicit and unambiguous.

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 provides clear practical context for when to use the tool, including how to handle auth collections, file uploads, and relation fields. It does not explicitly exclude alternatives (e.g., 'use update_record instead of...'), but the guidance is sufficient for an agent to understand this is the create-record operation.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nestebe/pocketbase-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server