Skip to main content
Glama
Symbolic Algebra MCP Server

Symbolic Algebra MCP Server

calculate_tensor

Computes a tensor from a specified metric and tensor type for symbolic general relativity calculations, with optional simplification of the result.

Instructions

Calculates a tensor from a metric using einsteinpy.symbolic.

Input Schema

NameRequiredDescriptionDefault
metric_keyYes
tensor_typeYes
simplify_resultNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It does not state whether the tool is read-only, whether it depends on prior state, what tensor types are supported, or what happens when simplify_result is enabled or disabled.

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 a single front-loaded sentence with no filler. It is concise, though its brevity contributes to the surrounding specification gaps.

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?

Although an output schema exists and covers return values, the input side is severely under-specified: three parameters have zero schema descriptions, no enum values are exposed for tensor_type, and no annotations exist. The description does far too little to compensate for this complexity.

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?

Schema description coverage is 0%, and the description adds almost no meaning beyond the schema. It only hints that a metric is involved, while tensor_type, metric_key format, and simplify_result behavior remain completely undefined.

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 and resource: calculates a tensor from a metric using einsteinpy.symbolic. However, it does not distinguish this tool from sibling tensor-related tools such as print_latex_tensor, nor does it clarify what kinds of tensors can be calculated.

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?

There is no guidance on when to use this tool versus alternatives, no prerequisites, and no mention of required state such as an existing metric. The agent must infer usage entirely from the name and schema.

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