Skip to main content
Glama

TinyFn

compare_2

Compare two values.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "a": "<a>",
      "b": "<b>"
    },
    "name": "compare_2"
  }
}

Input Schema

NameRequiredDescriptionDefault
aYesFirst value
bYesSecond value

Output Schema

NameRequiredDescriptionDefault
aYes
bYes
typeYes
equalYes
a_lengthNo
b_lengthNo
a_greaterNo
b_greaterNo
differenceNo
equal_ignore_caseNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedOutput schema / $defs / CompareResponse
      Added value: +{
      +  "properties": {
      +    "a": {
      +      "title": "A",
      +      "type": "string"
      +    },
      +    "a_greater": {
      +      "anyOf": [
      +        {
      +          "type": "boolean"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "A Greater"
      +    },
      +    "a_length": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "A Length"
      +    },
      +    "b": {
      +      "title": "B",
      +      "type": "string"
      +    },
      +    "b_greater": {
      +      "anyOf": [
      +        {
      +          "type": "boolean"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "B Greater"
      +    },
      +    "b_length": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "B Length"
      +    },
      +    "difference": {
      +      "anyOf": [
      +        {
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Difference"
      +    },
      +    "equal": {
      +      "title": "Equal",
      +      "type": "boolean"
      +    },
      +    "equal_ignore_case": {
      +      "anyOf": [
      +        {
      +          "type": "boolean"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Equal Ignore Case"
      +    },
      +    "type": {
      +      "title": "Type",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "a",
      +    "b",
      +    "type",
      +    "equal"
      +  ],
      +  "title": "CompareResponse",
      +  "type": "object"
      +}
    • removedOutput schema / $defs / app__routers__misc_utils__CompareResponse
      Removed value: -{
      -  "properties": {
      -    "a": {
      -      "title": "A",
      -      "type": "string"
      -    },
      -    "a_greater": {
      -      "anyOf": [
      -        {
      -          "type": "boolean"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "A Greater"
      -    },
      -    "a_length": {
      -      "anyOf": [
      -        {
      -          "type": "integer"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "A Length"
      -    },
      -    "b": {
      -      "title": "B",
      -      "type": "string"
      -    },
      -    "b_greater": {
      -      "anyOf": [
      -        {
      -          "type": "boolean"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "B Greater"
      -    },
      -    "b_length": {
      -      "anyOf": [
      -        {
      -          "type": "integer"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "B Length"
      -    },
      -    "difference": {
      -      "anyOf": [
      -        {
      -          "type": "number"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Difference"
      -    },
      -    "equal": {
      -      "title": "Equal",
      -      "type": "boolean"
      -    },
      -    "equal_ignore_case": {
      -      "anyOf": [
      -        {
      -          "type": "boolean"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Equal Ignore Case"
      -    },
      -    "type": {
      -      "title": "Type",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "a",
      -    "b",
      -    "type",
      -    "equal"
      -  ],
      -  "title": "CompareResponse",
      -  "type": "object"
      -}
    • changedOutput schema / x-fastmcp-top-level-schema
      Previous value: -"app__routers__misc_utils__CompareResponse"New value: +"CompareResponse"
  2. Changed3 schema fields changed
    • removedOutput schema / $defs / CompareResponse
      Removed value: -{
      -  "properties": {
      -    "a": {
      -      "title": "A",
      -      "type": "string"
      -    },
      -    "a_greater": {
      -      "anyOf": [
      -        {
      -          "type": "boolean"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "A Greater"
      -    },
      -    "a_length": {
      -      "anyOf": [
      -        {
      -          "type": "integer"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "A Length"
      -    },
      -    "b": {
      -      "title": "B",
      -      "type": "string"
      -    },
      -    "b_greater": {
      -      "anyOf": [
      -        {
      -          "type": "boolean"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "B Greater"
      -    },
      -    "b_length": {
      -      "anyOf": [
      -        {
      -          "type": "integer"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "B Length"
      -    },
      -    "difference": {
      -      "anyOf": [
      -        {
      -          "type": "number"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Difference"
      -    },
      -    "equal": {
      -      "title": "Equal",
      -      "type": "boolean"
      -    },
      -    "equal_ignore_case": {
      -      "anyOf": [
      -        {
      -          "type": "boolean"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Equal Ignore Case"
      -    },
      -    "type": {
      -      "title": "Type",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "a",
      -    "b",
      -    "type",
      -    "equal"
      -  ],
      -  "title": "CompareResponse",
      -  "type": "object"
      -}
    • addedOutput schema / $defs / app__routers__misc_utils__CompareResponse
      Added value: +{
      +  "properties": {
      +    "a": {
      +      "title": "A",
      +      "type": "string"
      +    },
      +    "a_greater": {
      +      "anyOf": [
      +        {
      +          "type": "boolean"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "A Greater"
      +    },
      +    "a_length": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "A Length"
      +    },
      +    "b": {
      +      "title": "B",
      +      "type": "string"
      +    },
      +    "b_greater": {
      +      "anyOf": [
      +        {
      +          "type": "boolean"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "B Greater"
      +    },
      +    "b_length": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "B Length"
      +    },
      +    "difference": {
      +      "anyOf": [
      +        {
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Difference"
      +    },
      +    "equal": {
      +      "title": "Equal",
      +      "type": "boolean"
      +    },
      +    "equal_ignore_case": {
      +      "anyOf": [
      +        {
      +          "type": "boolean"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Equal Ignore Case"
      +    },
      +    "type": {
      +      "title": "Type",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "a",
      +    "b",
      +    "type",
      +    "equal"
      +  ],
      +  "title": "CompareResponse",
      +  "type": "object"
      +}
    • changedOutput schema / x-fastmcp-top-level-schema
      Previous value: -"CompareResponse"New value: +"app__routers__misc_utils__CompareResponse"
  3. First observed

TDQS

C2.3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden, and it discloses nothing about behavior: not whether comparison is lexicographic, numeric, or case-sensitive, not the ordering semantics, not whether it errors on incomparable input. Output schema coverage relieves it of explaining return values, which is the only thing keeping this above 1.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One short, front-loaded sentence with no filler, but its brevity comes from under-specification rather than efficiency — nothing here earns its place beyond the tool name.

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?

An output schema exists so return values need no explanation, but for a two-operand comparison with zero annotations the description should at minimum state comparison semantics and tie-breaking. As written, an agent must guess the core behavior before calling.

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

Parameters3/5

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

Schema description coverage is 100% with two required string parameters, so the schema already documents a and b. The description adds no meaning about how the two operands are interpreted (as numbers, strings, versions), so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a verb and resource ("Compare two values") but "values" is unspecified, and the siblings include compare, compare_decimals, compare_hashes, constant_time_compare and text_similarity, none of which are differentiated. An agent cannot tell from this text whether it does string, numeric, or hash comparison.

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

Usage Guidelines1/5

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

No when-to-use, when-not-to-use, or named alternative is provided. Given the crowded sibling cluster of comparison tools, the absence of any routing guidance is a real defect.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.