Skip to main content
Glama

text_similarity

Read-onlyIdempotent

Text similarity

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": "text_similarity"
  }
}

Input Schema

NameRequiredDescriptionDefault
aYesFirst text, up to 10,000 characters (longer is a 422).
bYesSecond text, up to 10,000 characters (longer is a 422).
phraseWordsNoWhen given (3 to 8), the response also has a `phrases` object: how much of each text sits inside phrases of this many words that both texts share (case and punctuation ignored). Shorter texts use shorter phrases. Compares the two texts with each other only; it is not a web plagiarism check.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Changed2 schema fields changed
    • addedInput schema / properties / a / description
      Added value: +"First text, up to 10,000 characters (longer is a 422)."
    • addedInput schema / properties / b / description
      Added value: +"Second text, up to 10,000 characters (longer is a 422)."
  3. Changed1 schema field changed
    • addedInput schema / properties / phraseWords
      Added value: +{
      +  "description": "When given (3 to 8), the response also has a `phrases` object: how much of each text sits inside phrases of this many words that both texts share (case and punctuation ignored). Shorter texts use shorter phrases. Compares the two texts with each other only; it is not a web plagiarism check.",
      +  "maximum": 8,
      +  "minimum": 3,
      +  "type": "integer"
      +}
  4. First observed

TDQS

C2.1/5.0
Behavior2/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive, and closed-world, so the safety profile is covered without the description. The description adds nothing beyond that: it does not say what score scale is returned, whether comparison is symmetric, or that matching ignores case and punctuation.

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

Conciseness2/5

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

The description is two words and contains no wasted language, but this is under-specification rather than conciseness. Nothing is front-loaded because there is nothing to front-load.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has non-trivial semantics — a similarity metric plus an optional shared-phrase analysis — with no output schema and no annotations explaining the return shape. For that complexity, a bare restatement of the name leaves an agent unable to predict or interpret the result.

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%, including the 10,000-character limit, the 3–8 bound on phraseWords, and the note that the comparison is only between the two supplied texts. That fully documents all three parameters, so the baseline of 3 applies despite the description contributing no parameter meaning.

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

Purpose2/5

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

"Text similarity" merely restates the tool name and title; it supplies no verb, no statement of what is compared, and no scale or output form. An agent cannot tell from the description how this differs from the sibling diff_text or paraphrase_text.

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 when-to-use guidance, no exclusion of alternatives, and no mention of when diff_text or paraphrase_text would be preferable. The schema hints at a phrase-overlap feature, but the description itself routes the agent nowhere.

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.

Resources