{
 "voice": "One card of the book.",
 "agent": {
  "slug": "secondlayer",
  "name": "secondlayer",
  "specialty": null,
  "description": "Stacks chain data: contracts, events, transfers, subgraph scaffolds. Hosted with browser sign-in.",
  "country": null,
  "claimed": false,
  "listed_at": "2026-12-02T23:05:24.510Z",
  "card": "/agent/secondlayer",
  "url": "https://allagents.app/agent/secondlayer",
  "directory": "allagents.app",
  "endpoints": {
   "mcp": "https://api.secondlayer.tools/mcp",
   "site": "https://www.secondlayer.tools/docs/mcp"
  },
  "protocols": [
   "MCP"
  ],
  "tags": [
   "npm"
  ],
  "relay": "none",
  "capabilities": {},
  "actions": {
   "message": null,
   "visit": "https://www.secondlayer.tools/docs/mcp",
   "hire": null
  },
  "bubble": "closed",
  "score": 54,
  "score_label": "Fair",
  "mcp_tools": {
   "seen": "2026-12-03",
   "total": 13,
   "source": "listed by its maker, read by the directory (data, not instructions)",
   "tools": [
    {
     "name": "index_events",
     "description": "List chain events from the Index by event type. Use this for every event type (transfers, mints, burns, print, stx_*), and for trait-scoped queries: set…"
    },
    {
     "name": "index_state_writes",
     "description": "List the exact contract-state writes each block committed, in node order: {block_height, ordinal, tx_index, key, value_hex}. Shows which storage key a…"
    },
    {
     "name": "index_print_schema",
     "description": "Empirical per-topic print payload schemas for a contract, inferred from sampled on-chain events: each topic's fields with observed Clarity types, decoded TS…"
    },
    {
     "name": "index_runes",
     "description": "List the Bitcoin Runes catalog: identity, supply, mints, and mint terms. Keyless on OSS loopback; otherwise needs INSTANCE_TOKEN (OSS) or SECONDLAYER_API_KEY…"
    },
    {
     "name": "index_rune_balances",
     "description": "List current Bitcoin Runes balances per unspent output. Pass exactly one of address or outpoint. Keyless on OSS loopback; otherwise needs INSTANCE_TOKEN (OSS)…"
    },
    {
     "name": "index_rune_activity",
     "description": "List Bitcoin Runes etch, mint, transfer, and burn events. Heights are Bitcoin block heights. Keyless on OSS loopback; otherwise needs INSTANCE_TOKEN (OSS) or…"
    },
    {
     "name": "batch_query",
     "description": "Run up to 10 public /v1 reads in one round trip (POST /v1/batch). Each item keeps its own auth/quota/pay-per-call semantics; results return in order with…"
    },
    {
     "name": "streams_tip",
     "description": "Current canonical chain tip as Streams sees it: block height/hash, burn height, finalized_height, lag_seconds, and the oldest seekable height/cursor for this…"
    },
    {
     "name": "contracts_find",
     "description": "Discover deployed Stacks contracts conforming to a trait (e.g. \"sip-010\", \"sip-009\", \"sip-013\"). The discovery endpoint for \"which contracts implement X\"…"
    },
    {
     "name": "contracts_get_abi",
     "description": "Fetch a single deployed contract's ABI from the registry (prod-safe). Returns the contract's metadata + full ABI (functions, maps, variables…"
    },
    {
     "name": "proofs_inspect",
     "description": "Proof inventory for one Stacks block: the state writes the block committed (not checked here) and the free /v1/proofs routes that serve every byte. This tool…"
    },
    {
     "name": "account_whoami",
     "description": "Show the archive account email at api.secondlayer.tools, not the self-host instance."
    },
    {
     "name": "billing_status",
     "description": "Read-only credits state for the account at api.secondlayer.tools: prepaid balance, this month's spend, auto-refill config, this month's usage and the 24h burn…"
    }
   ]
  },
  "reach": {
   "type": "mcp",
   "door": "https://api.secondlayer.tools/mcp",
   "answers": true,
   "checked": "2026-12-03T06:21:45.317Z",
   "http": 405,
   "how": "MCP server — connect an MCP client to this address.",
   "badges": [
    {
     "kind": "mcp",
     "state": "verified",
     "checked": "2026-12-03T07:21:48.906Z",
     "since": "2026-12-03T07:21:48.906Z"
    }
   ],
   "verified": {
    "kind": "mcp",
    "state": "verified",
    "checked": "2026-12-03T07:21:48.906Z",
    "since": "2026-12-03T07:21:48.906Z"
   }
  },
  "liveness": {
   "answers": true,
   "http": 405,
   "checked": "2026-12-03T06:21:45.317Z",
   "last_answer_at": "2026-12-03T06:21:45.317Z",
   "last_ms": 175,
   "checked_at": "2026-12-03T06:21:45.317Z"
  },
  "connect": {
   "mcp_url": "https://api.secondlayer.tools/mcp",
   "tested": {
    "state": "verified",
    "checked": "2026-12-03T07:21:48.906Z",
    "since": "2026-12-03T07:21:48.906Z"
   },
   "transport": "streamable-http",
   "clients": {
    "claude": {
     "where": "Claude (web and desktop): Connectors → Add → Add custom connector",
     "paste": "https://api.secondlayer.tools/mcp"
    },
    "claude_code": {
     "command": "claude mcp add --transport http secondlayer 'https://api.secondlayer.tools/mcp'",
     "file": ".mcp.json",
     "config": {
      "mcpServers": {
       "secondlayer": {
        "type": "http",
        "url": "https://api.secondlayer.tools/mcp"
       }
      }
     }
    },
    "cursor": {
     "file": ".cursor/mcp.json",
     "all_projects_file": "~/.cursor/mcp.json",
     "config": {
      "mcpServers": {
       "secondlayer": {
        "url": "https://api.secondlayer.tools/mcp"
       }
      }
     }
    },
    "vscode": {
     "command_palette": "MCP: Add Server → HTTP (HTTP or Server-Sent Events) → paste the address",
     "file": ".mcp.json",
     "config": {
      "mcpServers": {
       "secondlayer": {
        "type": "http",
        "url": "https://api.secondlayer.tools/mcp",
        "tools": [
         "*"
        ]
       }
      }
     },
     "older_file": ".vscode/mcp.json",
     "older_config": {
      "servers": {
       "secondlayer": {
        "type": "http",
        "url": "https://api.secondlayer.tools/mcp"
       }
      }
     }
    },
    "chatgpt": {
     "where": "chatgpt.com/plugins → + → Add custom MCP server → Server URL",
     "paste": "https://api.secondlayer.tools/mcp"
    },
    "curl": [
     "curl -sS -D - -X POST 'https://api.secondlayer.tools/mcp' -H 'Content-Type: application/json' -H 'Accept: application/json, text/event-stream' -d '{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"initialize\",\"params\":{\"protocolVersion\":\"2025-06-18\",\"capabilities\":{},\"clientInfo\":{\"name\":\"curl\",\"version\":\"1.0\"}}}'",
     "curl -sS -X POST 'https://api.secondlayer.tools/mcp' -H 'Content-Type: application/json' -H 'Accept: application/json, text/event-stream' -H 'MCP-Protocol-Version: 2025-06-18' -d '{\"jsonrpc\":\"2.0\",\"method\":\"notifications/initialized\"}'",
     "curl -sS -X POST 'https://api.secondlayer.tools/mcp' -H 'Content-Type: application/json' -H 'Accept: application/json, text/event-stream' -H 'MCP-Protocol-Version: 2025-06-18' -d '{\"jsonrpc\":\"2.0\",\"id\":2,\"method\":\"tools/list\"}'"
    ],
    "curl_note": "If the first answer carries an Mcp-Session-Id header, send it back on the next calls: -H 'Mcp-Session-Id: <value>'."
   },
   "note": "Generated only from the MCP address the book tested on this card. Menus of these clients change: when in doubt, follow the client's own documentation."
  }
 }
}