Skip to main content
Glama

Lordevo Shop (x402 website checks)

Text extraction: URLs, dates, money, numbers and more ($0.002/call)

text_extract
Read-onlyIdempotent

$0.002 per call (x402, USDC on Base; free trial: add "trial": true or use try_free). [Data utilities] Finds URLs, domains, dates (ISO, written and numeric, ambiguous ones flagged with both readings, as ISO 8601), money amounts with currency, percentages, numbers and hashtags in text you send, each with position and occurrences. Email addresses and phone-like numbers only when listed in types; nothing is looked up or stored; names and addresses are never extracted. Input: text (POST for long text), optional types, max_items. Limit: 400,000 characters. Offline.

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": "text_extract"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesPlain text or Markdown, 1-400,000 characters (short text in the query; long text as POST JSON {"text": "..."})
trialNoOptional. true = free if a trial call is left (3 per IP per UTC day), else the payment terms.
typesNoComma list of: urls, domains, emails, phones, dates, money, percentages, numbers, hashtags. Default: urls, domains, dates, money, percentages, numbers, hashtags (emails and phones only when listed)
max_itemsNoUnique items per type, 1-1000 (default 200)200

Output Schema

NameRequiredDescriptionDefault
toolNo
urlsNo
cacheNo
datesNo
moneyNo
notesNo
typesNo
_trialNoPresent when the call was a free trial call.
emailsNo
phonesNo
domainsNo
numbersNo
summaryNo
hashtagsNo
providerNo
price_usdNo
percentagesNo
text_lengthNo
truncated_typesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / trial / description
      Previous value: -"Optional. true = answer free if a trial call is left (3 per IP per UTC day); otherwise you get the payment terms."New value: +"Optional. true = free if a trial call is left (3 per IP per UTC day), else the payment terms."
  2. Changed2 schema fields changed
    • addedInput schema / properties / trial
      Added value: +{
      +  "description": "Optional. true = answer free if a trial call is left (3 per IP per UTC day); otherwise you get the payment terms.",
      +  "type": "boolean"
      +}
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "anyOf": [
      +    {
      +      "required": [
      +        "tool",
      +        "types",
      +        "summary"
      +      ]
      +    },
      +    {
      +      "properties": {
      +        "accepts": {
      +          "type": "array"
      +        },
      +        "error": {
      +          "type": "string"
      +        },
      +        "resource": {
      +          "type": "object"
      +        },
      +        "x402Version": {
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "x402Version",
      +        "accepts"
      +      ]
      +    },
      +    {
      +      "properties": {
      +        "charged": {
      +          "type": "boolean"
      +        },
      +        "error": {
      +          "type": "string"
      +        },
      +        "message": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "error"
      +      ]
      +    }
      +  ],
      +  "properties": {
      +    "_trial": {
      +      "description": "Present when the call was a free trial call.",
      +      "type": "object"
      +    },
      +    "cache": {
      +      "type": "object"
      +    },
      +    "dates": {
      +      "items": {
      +        "properties": {
      +          "index": {
      +            "type": "integer"
      +          },
      +          "line": {
      +            "type": "integer"
      +          },
      +          "occurrences": {
      +            "type": "integer"
      +          },
      +          "text": {
      +            "type": "string"
      +          },
      +          "value": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "domains": {
      +      "items": {
      +        "properties": {
      +          "index": {
      +            "type": "integer"
      +          },
      +          "line": {
      +            "type": "integer"
      +          },
      +          "occurrences": {
      +            "type": "integer"
      +          },
      +          "text": {
      +            "type": "string"
      +          },
      +          "value": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "emails": {
      +      "items": {
      +        "properties": {
      +          "index": {
      +            "type": "integer"
      +          },
      +          "line": {
      +            "type": "integer"
      +          },
      +          "occurrences": {
      +            "type": "integer"
      +          },
      +          "text": {
      +            "type": "string"
      +          },
      +          "value": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "hashtags": {
      +      "items": {
      +        "properties": {
      +          "index": {
      +            "type": "integer"
      +          },
      +          "line": {
      +            "type": "integer"
      +          },
      +          "occurrences": {
      +            "type": "integer"
      +          },
      +          "text": {
      +            "type": "string"
      +          },
      +          "value": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "money": {
      +      "items": {
      +        "properties": {
      +          "index": {
      +            "type": "integer"
      +          },
      +          "line": {
      +            "type": "integer"
      +          },
      +          "occurrences": {
      +            "type": "integer"
      +          },
      +          "text": {
      +            "type": "string"
      +          },
      +          "value": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "notes": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "numbers": {
      +      "items": {
      +        "properties": {
      +          "index": {
      +            "type": "integer"
      +          },
      +          "line": {
      +            "type": "integer"
      +          },
      +          "occurrences": {
      +            "type": "integer"
      +          },
      +          "text": {
      +            "type": "string"
      +          },
      +          "value": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "percentages": {
      +      "items": {
      +        "properties": {
      +          "index": {
      +            "type": "integer"
      +          },
      +          "line": {
      +            "type": "integer"
      +          },
      +          "occurrences": {
      +            "type": "integer"
      +          },
      +          "text": {
      +            "type": "string"
      +          },
      +          "value": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "phones": {
      +      "items": {
      +        "properties": {
      +          "index": {
      +            "type": "integer"
      +          },
      +          "line": {
      +            "type": "integer"
      +          },
      +          "occurrences": {
      +            "type": "integer"
      +          },
      +          "text": {
      +            "type": "string"
      +          },
      +          "value": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "price_usd": {
      +      "type": "number"
      +    },
      +    "provider": {
      +      "type": "string"
      +    },
      +    "summary": {
      +      "type": "object"
      +    },
      +    "text_length": {
      +      "type": "integer"
      +    },
      +    "tool": {
      +      "type": "string"
      +    },
      +    "truncated_types": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "types": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "urls": {
      +      "items": {
      +        "properties": {
      +          "index": {
      +            "type": "integer"
      +          },
      +          "line": {
      +            "type": "integer"
      +          },
      +          "occurrences": {
      +            "type": "integer"
      +          },
      +          "text": {
      +            "type": "string"
      +          },
      +          "value": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "type": "object"
      +}
  3. Added

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing pricing ($0.002/call, x402 USDC on Base), the trial quota (3 per IP per UTC day), the hard 400,000-character limit, the no-lookup/no-storage guarantee, and the ambiguous-date handling that returns both readings in ISO 8601. Quota and cost are exactly the traits annotations cannot express.

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?

Tight, waste-free prose with no filler, but it front-loads the price tag ahead of what the tool actually does, which is the least useful ordering for tool selection. One sentence ('Input: text ... optional types, max_items') also duplicates the schema verbatim.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 shape needn't be explained, and the description still covers cost, quota, input limits, offline behavior, and explicit extraction exclusions. Nothing an agent needs to invoke this correctly is missing.

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 description coverage is 100%, so the baseline is 3. The description largely restates schema facts — the default type list, the emails/phones opt-in rule, the max_items default, and POST for long text — adding little new meaning for any individual parameter.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and enumerates the exact resources found: URLs, domains, dates, money, percentages, numbers, hashtags — each with position and occurrences. It also draws the negative boundary (emails/phones only when listed; names and addresses never extracted), which lets an agent distinguish it from regex_test or csv_parse without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives a clear operating context ('in text you send', 'offline', 400,000 char limit) and routes the cost-conscious caller to the try_free sibling or the trial flag. It stops short of naming alternatives for entity extraction (e.g. when to prefer regex_test or text_chunk), so it is strong context rather than full when/when-not 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