Skip to main content
Glama

batch_records

Run multiple PocketBase create, update, upsert, and delete operations in one request to reduce round trips and apply related record changes together.

Instructions

Perform multiple create/update/upsert/delete operations in one request.

Input Schema

NameRequiredDescriptionDefault
requestsYesList of batch operation dicts. Example: [ {"method": "POST", "url": "/api/collections/posts/records", "body": {"title": "New post"}}, {"method": "PATCH", "url": "/api/collections/posts/records/abc123", "body": {"title": "Updated"}}, {"method": "DELETE", "url": "/api/collections/posts/records/xyz789"} ]

Output Schema

NameRequiredDescriptionDefault
resultsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description bears the full behavioral burden, and it does not disclose the most important traits: whether the batch is atomic or allows partial success, what happens to remaining operations when one fails, whether there is a maximum request count, or whether authentication is required. It does add the existence of upsert semantics, which is real value beyond the name, but for an unannotated multi-mutation tool the critical failure semantics are absent.

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?

A single front-loaded sentence with no filler or redundancy. It is efficient, though the brevity is partly the cause of the missing behavioral detail rather than a virtue in itself.

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?

An output schema exists, so return values need not be described. However, for a batch mutation tool with zero annotations, the description should at minimum cover atomicity/partial-failure behavior and any size limits — the two things an agent must know before assembling a batch. Those omissions leave it materially incomplete for the tool's complexity.

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 100%, and the schema's example enumerates the method/url/body shape with concrete POST, PATCH, and DELETE cases, so the description need not repeat it. The description adds nothing about the requests array beyond what the schema already conveys, so baseline 3 applies.

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 states a specific verb set (create/update/upsert/delete) and scope (multiple operations in one request), which distinguishes it from the single-record siblings like create_record and update_record. It also introduces 'upsert', which no sibling offers. It stops short of naming the siblings it replaces, so it lands at 4 rather than 5.

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

Usage Guidelines2/5

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

'In one request' hints at the efficiency motivation for batching, but there is no explicit guidance on when to choose batch_records over repeated calls to create_record/update_record/delete_record. Nothing is said about batch size limits, ordering guarantees, or whether mixed operation types in a single call are advisable.

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