81trust / 100

Skill Text Analyze

by Skill: Text analysis in Search & web

x402 APIPassing, checked 38 min ago

Full text analysis - word/sentence stats, keyword extraction, and token count in one pass. Text analysis skill pack: one x402 payment runs 3 underlying tools (text-stats, keywords, token-count); partial-success per step.

POST https://agent402.tools/api/skill/text-analyze

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
187 ms typical, 187 ms slowest 5%
Last check
38 min ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://agent402.tools/api/skill/text-analyze" \
  -H "content-type: application/json" \
  -d '{"text":"The x402 protocol enables pay-per-call API payments using USDC stablecoins on Base and other chains."}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagent402.tools%2Fapi%2Fskill%2Ftext-analyze
const res = await pay("https://agent402.tools/api/skill/text-analyze", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"text":"The x402 protocol enables pay-per-call API payments using USDC stablecoins on Base and other chains."}),
});
console.log(await res.json());

Example input

{
  "text": "The x402 protocol enables pay-per-call API payments using USDC stablecoins on Base and other chains."
}

Example output

{
  "args": {
    "text": "The x402 protocol enables pay-per-call API payments using USDC stablecoins on Base and other chains."
  },
  "pack": "text-analyze",
  "steps": [
    {
      "ok": true,
      "result": {},
      "slug": "text-stats"
    },
    {
      "ok": true,
      "result": {},
      "slug": "keywords"
    },
    {
      "ok": true,
      "result": {},
      "slug": "token-count"
    }
  ],
  "summary": "3/3 steps succeeded"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
38 min agoPassed402187 ms$0.004
6 h agoPassed402195 ms$0.004