Skip to main content
Glama
sdiehl
by sdiehl

calculate_curl

Compute the curl of a vector field in a specified coordinate system using SymPy. Input a vector field key to generate a curl expression for analyzing rotational behavior in vector calculus.

Instructions

Calculates the curl of a vector field using SymPy's curl function.

Args:
    vector_field_key: The key of the vector field expression.

Example:
    # First create a coordinate system
    create_coordinate_system("R")

    # Create a vector field F = (y, -x, 0)
    vector_field = create_vector_field("R", "R_y", "-R_x", "0")

    # Calculate curl
    curl_result = calculate_curl(vector_field)
    # Returns (0, 0, -2)

Returns:
    A key for the curl expression.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
vector_field_keyYes
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It explains the tool's function and includes an example with expected output, but lacks details on error handling, performance characteristics, or side effects (e.g., whether it modifies state). This is adequate but has gaps for a tool with no annotation coverage.

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 a purpose statement, parameter explanation, example, and return value note. It is appropriately sized and front-loaded, though the example could be slightly more concise. Every sentence adds value, with no redundant information.

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's moderate complexity (mathematical operation with dependencies), no annotations, and no output schema, the description is reasonably complete. It covers purpose, parameter semantics, usage example, and return value. However, it could improve by addressing error cases or linking more explicitly to sibling tools for context.

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?

The input schema has 0% description coverage, but the description compensates by explaining the parameter's meaning ('The key of the vector field expression') and showing its usage in the example. It clarifies that the parameter references a previously created vector field, adding significant value beyond the schema's basic type information.

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 purpose: 'Calculates the curl of a vector field using SymPy's curl function.' It specifies the verb ('calculates'), resource ('curl of a vector field'), and implementation method ('using SymPy's curl function'), distinguishing it from siblings like calculate_divergence or calculate_gradient.

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 clear context through an example showing prerequisite steps (creating a coordinate system and vector field) and the tool's role in a workflow. However, it does not explicitly state when to use this tool versus alternatives like calculate_divergence or when not to use it, which prevents a perfect score.

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

Related 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/sdiehl/sympy-mcp'

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