Skip to main content
Glama

Agent Data Tools: Utilities

Extract emails, URLs and more: find email addresses, URLs, phone numbers and other items in a text

text_extract
Read-only

Find all email addresses, URLs, phone-number-like strings, hashtags, @mentions and numbers in a text, each list de-duplicated. Use to pull contacts and links out of scraped pages or messages. Example: text=Mail ada@example.com or see https://example.com #news @ada +46 70 123 45 67. Price $0.01/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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
textYesThe text

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover read-only and non-destructive semantics, but the description adds genuinely new behavior: results are de-duplicated per list, each call is billed ($0.01 via x402 USDC or card key with 10 free), repeats are charged, and failed calls are free — which explains the non-idempotent annotation. It does not describe the shape of the returned structure, but the cost and side-effect profile is unusually well disclosed.

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 purpose and usage hint are front-loaded, and the example is compact and immediately illustrative. The billing sentence is dense with pricing mechanics and slightly crowds out what would otherwise be a clean two-part 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?

With no output schema, the description must convey the return contract, and it only implies per-entity lists via "each list de-duplicated" without saying whether the response is an object keyed by entity type or how empty categories appear. For a one-parameter extractor this is workable but leaves the agent guessing at response structure.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema documents the single `text` parameter at 100% coverage, so the baseline is satisfied by the schema alone. The description adds a worked example showing the kind of mixed content expected in `text` (email, URL, hashtag, mention, phone, price), which clarifies input expectations beyond the terse "The text" schema note.

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 opens with a concrete verb and an enumerated set of extractable entities (emails, URLs, phone-like strings, hashtags, @mentions, numbers), so an agent knows exactly what the tool returns. It stops short of naming a sibling like text_pii or ai_extract_json, so the boundary with the generic extractors is implied rather than stated.

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?

"Use to pull contacts and links out of scraped pages or messages" gives a clear positive usage context with a plausible input source. There is no explicit when-not guidance or pointer to a competing tool such as text_pii for sensitive-data scanning, which keeps it below a 5.

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