Skip to main content
Glama

Levenshtein distance

bursia_levenshtein
Read-onlyIdempotent

Edit distance and similarity between two texts (max 2,000 chars each). Pure computation, free.

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

Input Schema

NameRequiredDescriptionDefault
aYesFirst text.
bYesSecond text.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / a / description
      Added value: +"First text."
    • addedInput schema / properties / b / description
      Added value: +"Second text."
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover readOnly, idempotent, non-destructive and closed-world, so the bar is low. The description adds two facts not in the annotations: a 2,000-character input cap and the fact that the call is free/no-side-effect computation.

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

Conciseness5/5

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

A single front-loaded sentence with no filler; the input limit is packed into a parenthetical rather than padded into its own sentence.

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

Completeness3/5

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

There is no output schema, so the description is the only place to say what comes back — yet it never clarifies whether the result is a numeric distance, a normalized similarity, or both. For an otherwise trivial two-param tool this is the one real gap.

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?

Schema coverage is 100%, so baseline is 3, but the description adds the 2,000-char limit that applies to 'a' and 'b' — a constraint the schema does not declare (no maxLength present). That is genuine semantic value beyond the structured fields.

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?

States a specific operation (edit distance and similarity) on a specific resource (two texts), which is distinguishable from neighbors like json_diff or text_stats by the lexical-distance framing. It never explicitly names a sibling, so it stops short of a 5.

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

Usage Guidelines3/5

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

"Pure computation, free" hints at cost/effort and the phrasing implies comparing two short strings, but there is no explicit when-to-use or when-to-prefer-json_diff/semver_compare guidance. Usage must be inferred from the tool name.

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