Skip to main content
Glama

Count copy against what already won

measure_text
Read-only

Count copy so a number beside a draft is measured, never typed: up to 20 texts, public page URLs or numbers another tool returned, in one call. Every item marked ours (the current one and each option) is held against the same reference median. Per measure: median, quartiles and count, yes/no measures as "7 of 10", a price on different billing bases never pooled. Words, sentences, reading grade, hook words, numbers, you against we; a page adds its hero, its first screen with the nav counted apart (words, buttons, calls to action, logos, the largest picture), the phone's first screen, and any redirect. Returns a row each, ours as a multiple of the median, and a compare table ready to show. Free. Free: nothing is charged. Needs the write scope.

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": {
      "items": "<items>"
    },
    "name": "measure_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYesWhat to measure. Each item has text or url (never both), numbers, or one of them with numbers.
budgetUsdNoOptional: the most this call may spend, in dollars, default 2, max 10.
compare_measuresNoWhich measures become compare rows, in order (column names or your numbers' names). Default: the core text or page measures, then every number given.

Output Schema

NameRequiredDescriptionDefault
toolYes
mediaYes
outputNoThe tool's own result, shaped by the tool.
chargedUsdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • addedInput schema / properties / compare_measures
      Added value: +{
      +  "description": "Which measures become compare rows, in order (column names or your numbers' names). Default: the core text or page measures, then every number given.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • changedInput schema / properties / items / description
      Previous value: -"What to measure. Each item has text or url, never both."New value: +"What to measure. Each item has text or url (never both), numbers, or one of them with numbers."
    • addedInput schema / properties / items / items / properties / node
      Added value: +{
      +  "description": "The graph node this side is, for the compare chapter (person:..., organization:...).",
      +  "type": "string"
      +}
    • addedInput schema / properties / items / items / properties / numbers
      Added value: +{
      +  "description": "Numbers a tool returned for this side, by measure name: {\"monthly visits\": 120000, \"free plan\": true, \"price\": {\"value\": 29, \"basis\": \"monthly, per seat\"}}. Each value is a number, true or false, null (not read), or {value, basis}. Copied from a tool result, never estimated.",
      +  "properties": {},
      +  "type": "object"
      +}
    • changedInput schema / properties / items / items / properties / ours / description
      Previous value: -"This is our draft; it gets the vsMedian row. One item at most."New value: +"Ours: our current one or an option. Mark every one; each gets vsMedian against the same median."
    • changedInput schema / properties / items / items / properties / reference / description
      Previous value: -"This is an example we hold ours against; it counts in the median."New value: +"An example we hold ours against; it counts in the median."
    • addedInput schema / properties / items / items / properties / source
      Added value: +{
      +  "description": "Which tool returned the numbers, and where: \"seo_profile, organic visits\".",
      +  "type": "string"
      +}
    • changedInput schema / properties / items / maxItems
      Previous value: -12New value: +20
  2. Added

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true and destructiveHint=false, so the safety profile is covered. The description adds real behavioral context beyond that: the 20-item cap, that 'ours' items are each held against the same reference median, that yes/no measures render as '7 of 10', that prices on different billing bases are never pooled, and that it needs the write scope despite being a read. It does not discuss latency, per-item failure handling, or what happens when a URL cannot be loaded.

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 content is front-loaded reasonably, but the prose is dense, run-on and repetitive: 'Free. Free: nothing is charged.' is duplicated verbatim in spirit, and long comma-spliced lists (hero, first screen, nav, buttons, calls to action, logos, largest picture, phone's first screen, redirect) obscure rather than clarify. Several sentences would need re-reading to parse.

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 schema documents all three parameters. Still, for a tool that mixes text and URL inputs with optional numbers and a spend budget, the description omits error behavior, what happens past the 20-item cap, and how budgetUsd interacts with the claim that the call is free — a gap worth closing.

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 coverage is 100%, so the baseline is 3; the schema already explains items, url, text, ours, reference, numbers, budgetUsd and compare_measures. The description adds some framing (up to 20 texts, 'ours as a multiple of the median', compare table output) but does not add syntax or constraints beyond the schema, and notably the phrase 'Free. Free: nothing is charged' sits oddly against a budgetUsd parameter.

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 concrete verb and resource: count/measure copy and pages, returning medians, quartiles and counts, with 'ours' marked against a reference median. It is specific about what is measured (words, sentences, reading grade, hook words, hero, first screen, redirects) and distinguishes itself from siblings like measure_reel only implicitly by naming text/page artifacts rather than video.

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 implied rather than stated: 'Count copy so a number beside a draft is measured, never typed' tells the agent this replaces manual counting, and 'numbers another tool returned' hints at chaining from other tools. However, there is no explicit when-to-use/when-not clause, no statement of alternatives (e.g. measure_reel for video), and no prerequisites spelled out beyond 'Needs the write scope.'

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.