Skip to main content
Glama

write_cell

Insert a new cell into a Mathematica notebook with specified content and style, without executing it. Use for composing text, section headers, or building notebooks cell by cell.

Instructions

[ADVANCED] Write a cell without evaluating it.

Prefer execute_code(style="notebook") for code execution. Use write_cell only for deliberate manual notebook authoring, such as text, section headers, or carefully controlled cell-by-cell construction.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentYes
styleNoInput
notebookNo
positionNoAfter
session_idNo
syncNonone
sync_waitNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations provided; description states the tool writes without evaluating, which is a key behavioral trait, but lacks details on side effects, overwriting behavior, or other implications.

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?

Two concise sentences plus a brief example list, front-loaded with the core behavior and usage advice—every sentence is informative.

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?

With 7 parameters, no schema documentation, and no annotations, the description fails to explain important aspects like content formatting, style options, position semantics, or sync behavior, making it insufficient for a complex tool.

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

Parameters1/5

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

0% schema description coverage; description provides no details about parameters like content, style, position, sync, leaving the agent without guidance beyond the schema.

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?

Clearly states 'Write a cell without evaluating it' and provides specific use cases (text, section headers, careful cell-by-cell construction), distinguishing it from sibling `execute_code`.

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?

Explicitly advises to prefer `execute_code(style="notebook")` for code execution and reserves `write_cell` for deliberate manual authoring, offering clear when-to-use and when-not-to-use guidance.

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/AbhiRawat4841/mathematica-mcp'

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