Skip to main content
Glama

reverse_verify

Verify a mathematical result by applying the reverse operation: integrate derivatives, differentiate integrals, or substitute solutions back to confirm they match the original expression.

Instructions

    Verify a result by applying the reverse operation.

    This is a key verification method:
    - Derivative → integrate back
    - Integral → differentiate back
    - Solve → substitute back

    Args:
        result_expr: The computed result
        original_expr: The original expression
        operation: "differentiate", "integrate", or "solve"
        variable: Variable involved

    Returns:
        Verification result

    Examples:
        reverse_verify("3*x**2", "x**3", "differentiate")
        → Integrates 3*x² and checks if it gives x³

        reverse_verify("x**3/3", "x**2", "integrate")
        → Differentiates x³/3 and checks if it gives x²
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
variableNox
operationYes
result_exprYes
original_exprYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

With no annotations, the description carries the full burden. It explains the reverse-operation method and provides examples, but it doesn't disclose the exact return type, potential edge cases (e.g., integration constants affecting verification), or failure behavior. This is adequate but not rich.

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-organized with a clear initial statement, bulleted mappings, an Args list, a Returns line, and two examples. It is slightly lengthy but every section adds value; the examples are particularly useful for disambiguating the parameter order and semantics.

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 and the presence of an output schema, the description covers the core purpose, parameters, and usage patterns with examples. It stops short of specifying the exact return format or limitations, but the provided information is sufficient for an agent to understand how to invoke it correctly.

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 Args section gives one-line meanings for each parameter, and the examples illustrate how result_expr, original_expr, and operation are used. The description also enumerates valid operation values ('differentiate', 'integrate', 'solve'), which is essential given the schema has no enum. Coverage is 0%, so this compensation is strong, though variable could use more detail.

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 opens with a specific verb and resource: 'Verify a result by applying the reverse operation.' It then clarifies the scope by listing the three reverse mappings (derivative→integrate, integral→differentiate, solve→substitute). This clearly distinguishes it from sibling verification tools like verify_derivative or verify_equality.

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 on when to use the tool through the operation mappings and examples. It implies usage scenarios (verifying a derivative, integral, or solution) but does not explicitly name alternatives or state when not to use it, leaving a small gap in 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/u9401066/nsforge-mcp'

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