Skip to main content
Glama

compare_placeholders

Compare placeholders like {0}, %s, ${name}, [NAME], \n, and \t between source and target segments to detect mismatches before QA or translation handoff.

Instructions

[READ] Compare placeholders ({0}, %s, ${name}, [NAME], \n, \t) between source and target.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "compare_placeholders"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden, and the '[READ]' prefix usefully signals a non-destructive operation in place of readOnlyHint. However, it never states which scope is compared (current segment, active document, or whole project), whether it requires an open project/document, or whether results are truncated, leaving real behavioral gaps.

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?

One short sentence, front-loaded with the '[READ]' marker and the core verb-resource pair, followed by concrete format examples. Every token earns its place with no filler.

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?

An output schema exists, so return values need not be explained, and the tool is simple with one optional parameter. Still missing is the comparison scope and any prerequisite context (active document/segment), which matters for an agent deciding whether a call will yield meaningful results.

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

Parameters2/5

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

Schema description coverage is 0% and the description never mentions the single parameter 'limit', so nothing is added beyond the bare title and default of 100. The agent must guess whether limit caps compared segments or reported mismatches.

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?

The description states a specific verb (compare) and resource (placeholders) plus the comparison scope (source vs target), and enumerates concrete placeholder forms ({0}, %s, ${name}, [NAME], \n, \t) so an agent knows exactly what is being checked. It does not explicitly distinguish itself from sibling checkers like check_numbers or check_punctuation, which keeps it below 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?

Usage is only implied: the '[READ]' tag and 'between source and target' framing suggest a non-mutating QA check on a translation pair. There is no explicit statement of when to call this versus the other check_* / find_inconsistencies tools, so the agent must infer the choice from names alone.

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