Skip to main content
Glama
nic01asFr
by nic01asFr

add_grist_records_safe

Validates table and column structure before adding records to a Grist document. Returns record IDs on success or correction suggestions.

Instructions

Ajoute des enregistrements avec validation préalable de la structure.

Cette version sécurisée valide l'existence de la table et des colonnes avant d'ajouter les enregistrements, et suggère des corrections si nécessaire.

Prérequis: - list_tables, list_columns: effectués automatiquement en interne

Flux de travail typique: 1. get_table_schema(doc_id, table_id) → comprendre les types 2. add_grist_records_safe(doc_id, table_id, records) → insertion validée 3. list_records(doc_id, table_id, limit=5) → vérifier le résultat

Args: doc_id: L'ID du document table_id: L'ID de la table records: Liste des enregistrements à ajouter

Returns: Dict avec statut, message, éventuellement des suggestions de correction, et IDs des enregistrements créés si l'opération a réussi

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
doc_idYes
recordsYes
table_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

No annotations are provided, so the description carries full burden. It transparently discloses that the tool validates table and column existence before inserting and suggests corrections. It also outlines the return dict structure (status, message, suggestions, created IDs). This is thorough for a mutation tool.

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 well-structured with sections for prerequisites and workflow, but it is slightly verbose. Each sentence adds value, though some repetition exists (e.g., repeating parameter names in Args after being mentioned earlier). Overall, it's clear and digestible.

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

Completeness5/5

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

Given that an output schema exists, the description need not detail return values, but it does so anyway. It covers purpose, prerequisites, workflow, and error handling (corrections). The addition of a suggested workflow makes it complete for a moderately complex tool.

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?

The description's 'Args' section merely lists parameter names without adding meaning beyond the input schema. Schema coverage is 0%, so the description should compensate, but it provides no details on parameter formats, constraints, or examples. This is a significant gap.

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 clearly states the tool's main action (adding records) and its distinguishing feature: prior structure validation. It specifies the verb 'Ajoute' and the resource 'enregistrements', and differentiates from the sibling 'add_grist_records' by the 'safe' validation behavior.

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 a typical workflow (get_table_schema, then this tool, then list_records) and notes that internal calls to list_tables and list_columns are automated. However, it does not explicitly state when not to use this tool or contrast it with alternatives like 'add_grist_records'. It implies usage but lacks exclusions.

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

Install Server

Other Tools

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/nic01asFr/mcp-server-grist'

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