Skip to main content
Glama

Vega Developer Utilities

String metrics

string_metrics
Read-onlyIdempotent

Length/word/line/char counts + Shannon entropy.

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": {
      "text": "<text>"
    },
    "name": "string_metrics"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesText to measure.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / text / description
      Added value: +"Text to measure."
  2. First observed

TDQS

A3.5/5.0
Behavior3/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 fully covered elsewhere. The description adds only the entropy computation as behavioral detail; it says nothing about how whitespace, Unicode, or empty input affect the counts. That is acceptable 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?

A single terse line with no filler, and the metric list is front-loaded. The only weakness is that it is a noun phrase fragment rather than a complete statement, but every token carries information.

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?

With an output schema present, return values need not be explained, and the annotations cover safety and scope. For a one-parameter, read-only measurement utility the description plus structured fields give an agent everything needed to call it correctly. Only edge-case input behavior is unaddressed, which is a minor gap.

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?

There is a single required parameter with 100% schema description coverage ('Text to measure.'), so the schema does the documentation work. The description adds no constraints on input size, encoding, or format beyond what is already structured. Baseline 3 applies when the schema is complete.

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 names the resource (strings) and the specific measures computed: length, word, line, char counts, and Shannon entropy. This clearly separates it from transformation siblings like case_convert or slugify, which change text rather than measure it. It lacks an explicit verb, but the enumerated metrics make the purpose unambiguous.

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 enumerated metrics suggest 'call this when you need text statistics,' but there is no explicit when-to-use statement and no mention of alternatives or conditions. For a narrowly scoped measurement tool this is largely self-evident, so it clears the minimum-viable bar without offering routing guidance.

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