Skip to main content
Glama

MarkSight

Compute document metrics

document_metrics

Compute word, character, line, heading, link, and image counts for a markdown document.

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": {
      "markdown": "<markdown>"
    },
    "name": "document_metrics"
  }
}

Input Schema

NameRequiredDescriptionDefault
markdownYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and it says nothing about mutation, permissions, cost, or how the counts are returned (totals vs. per-section). The only real behavioral signal is that this is a count-producing analysis, which the agent could guess from the title alone.

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 tight sentence that front-loads the verb and lists the returnable metrics with no filler. Nothing could be removed without losing information.

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?

For a simple one-parameter read-only computation this is close to sufficient, but with no annotations and no output schema the agent still cannot know the shape of the result or whether omitted metrics appear as zero. A single clause about the returned object would close the 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 0% schema description coverage, but the phrase 'for a markdown document' makes clear the input is the raw markdown text. The description adds nothing about size limits, encoding, or expected format beyond what the schema's type and maxLength already state.

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?

Names a specific verb (compute) and resource (markdown document) and enumerates the exact metrics produced: words, characters, lines, headings, links, images. That enumeration implicitly separates it from siblings like markdown_to_html (conversion) and document_outline (structure extraction), though it never names an alternative.

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 prerequisites, and no statement of when another sibling (e.g. document_outline) would be the better choice. Usage is only inferable from the stated output metrics.

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.