Skip to main content
Glama
nic01asFr
by nic01asFr

create_table

Create a new table in a Grist document by specifying a unique table ID and optional column definitions for structured data storage.

Instructions

Crée une nouvelle table dans un document.

Prérequis: - list_documents: Pour obtenir un doc_id valide

Flux de travail typique: 1. list_documents(workspace_id) → obtenir doc_id 2. create_table(doc_id, "TableName", columns=[...]) → créer la table 3. list_tables(doc_id) → vérifier la création

Args: doc_id: L'ID du document table_id: ID de la nouvelle table (doit être unique dans le document) columns: Liste des définitions de colonnes (optionnel) Exemple: [ {"id": "name", "type": "Text", "label": "Nom"}, {"id": "status", "type": "Choice", "widgetOptions": {"choices": ["A", "B", "C"]}}, {"id": "amount", "type": "Numeric"} ]

Returns: Dict avec statut, message et détails de la table créée

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
doc_idYes
columnsNo
table_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/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 discloses the creation action, the uniqueness constraint on table_id, optional columns with examples, and return data. It does not mention error behavior (e.g., duplicate IDs) or side effects, but overall it provides solid behavioral context beyond the schema.

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?

Well-structured with clear sections: purpose, prerequisites, workflow, args with examples, and returns. The description is front-loaded with the core purpose, and every sentence adds value. It is appropriately sized for the tool's complexity.

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 the tool has an output schema (context confirms), the description's return explanation is sufficient. It covers prerequisites, workflow, and parameter details. It lacks error handling or edge cases like invalid doc_id, but for typical use it is complete. The sibling context shows many tools, but this description stands alone well.

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 0%, but the description adds significant meaning: doc_id is the document ID, table_id must be unique, and columns is a list of column definitions with a detailed example. This compensates well for the schema's lack of descriptions, though a bit more detail on each parameter type would be ideal.

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 clearly states it creates a new table in a document ('Crée une nouvelle table dans un document'). It distinguishes from siblings like 'create_column' by specifying the resource 'table', but lacks explicit differentiation from other 'create_' tools. The purpose is clear but could be more specific about its unique role.

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

Usage Guidelines5/5

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

Excellent guidance: prerequisites (list_documents to get doc_id), a step-by-step typical workflow, and parameter examples. This explicitly tells the agent when and how to use the tool, including verifying creation. No guidance on when not to use, but the workflow is comprehensive.

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