Skip to main content
Glama

minia2a — hosted x402 API marketplace (HTTP)

x402-first-n-lines

First N Lines: Returns the first n lines of text, defaulting to one line, by splitting on newlines 🆓 5 free trial calls per signed wallet

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": {
      "input": "<input>",
      "text": "<text>"
    },
    "name": "x402-first-n-lines"
  }
}

Input Schema

NameRequiredDescriptionDefault
nNo
textYes
inputYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / required
      Previous value: -[
      -  "input",
      -  "text",
      -  "n"
      -]New value: +[
      +  "input",
      +  "text"
      +]
  2. Changed1 schema field changed
    • changedInput schema / required
      Previous value: -[
      -  "input",
      -  "text"
      -]New value: +[
      +  "input",
      +  "text",
      +  "n"
      +]
  3. Changed1 schema field changed
    • addedInput schema / required
      Added value: +[
      +  "input",
      +  "text"
      +]
  4. Changed3 schema fields changed
    • removedInput schema / properties / input / description
      Removed value: -"Input to process"
    • removedInput schema / properties / n / description
      Removed value: -"N to process"
    • removedInput schema / properties / text / description
      Removed value: -"Text to process"
  5. First observed

TDQS

B3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose two real behaviors — the default n of one line and that splitting is on newline characters. It omits edge behavior (n larger than the line count, empty text, whether n is interpreted from a string) and says nothing about the return value or what the free-trial limit means once exhausted.

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?

The core definition is one front-loaded sentence with zero waste, and the default value is placed where it is most needed. The trailing free-trial/emoji promotional fragment is marginally useful billing context but slightly dilutes an otherwise tight definition.

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?

This is a simple text utility with no output schema and no annotations, so the description is close to sufficient for the main behavior. However, an unexplained required 'input' parameter and no statement of how few/edge cases behave leave real gaps for an agent constructing the call.

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%, so the description must compensate and largely does not: 'text' and 'n' are only loosely described, and the required 'input' parameter is never mentioned at all. It also gives no hint that 'n' is typed as a string, an unusual choice an agent could easily get wrong.

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 verb and resource ('Returns the first n lines of text') plus the mechanism ('by splitting on newlines') and the default (one line), which clearly separates it from x402-last-n-lines even though that sibling is not named. The purpose is unmistakable, but no explicit sibling differentiation is offered.

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 or when-not-to-use guidance: nothing says to prefer this over x402-last-n-lines, x402-grep-lines, or x402-trim-lines for extracting a subset of lines. The only non-behavioral sentence is a pricing trial note ('5 free trial calls per signed wallet'), which is not selection 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.