{"name":"tools.secondlayer/secondlayer","title":"secondlayer","description":"Stacks chain data: contracts, events, transfers, subgraph scaffolds. Hosted with browser sign-in.","url":"https://api.secondlayer.tools/mcp","website":"https://www.secondlayer.tools/docs/mcp","repository":"https://github.com/ryanwaits/secondlayer","status":"ok","score":74,"grade":"C","protocol":"2025-06-18","tools":20,"tokens":4765,"latency_ms":182,"availability_30d":1.0,"checks_30d":2,"discover":"none","checked_at":"2026-11-29 05:29 UTC","cite":"On 2026-11-29 05:29 UTC, the BOTERNITY MCP Index scored secondlayer (tools.secondlayer/secondlayer) 74/100 (grade C); 20 tools, 4765 tokens for tools/list; healthy in 100 % of 2 checks over 30 days.","page":"https://boternity.com/mcp-index/server?name=tools.secondlayer%2Fsecondlayer","badge":"https://boternity.com/mcp-index/badge.svg?name=tools.secondlayer%2Fsecondlayer","history":[{"at":"2026-11-29 05:29 UTC","status":"ok","score":74},{"at":"2026-11-27 08:42 UTC","status":"ok","score":74}],"alternatives":null,"similar":null,"declared_tools":{"captured_at":"2026-11-29 05:29 UTC","same_check_as_score":true,"names":["account_whoami","batch_query","contracts_find","contracts_get_abi","index_blocks","index_contract_calls","index_discover","index_events","index_ft_transfers","index_nft_transfers","index_print_schema","index_rune","index_rune_activity","index_rune_balances","index_runes","index_state_writes","index_transactions","streams_dumps","streams_tip","subgraphs_scaffold"],"documented":[{"name":"account_whoami","description":"Show the archive account email at api.secondlayer.tools, not the self-host instance."},{"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 per-item status. Paths must start with /v1/index, /v1/subgraphs, /v1/streams, or /v1/c","params":["requests"],"required":["requests"]},{"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\". Reads are public.","params":["conformance","cursor","include","limit","trait"],"required":["trait"]},{"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, fungible/non-fungible tokens). Returns not_found if the contract isn't in the registry. Use it to ","params":["contractId"],"required":["contractId"]},{"name":"index_blocks","description":"List decoded blocks from Index. Keyless on OSS loopback; otherwise needs INSTANCE_TOKEN (OSS) or SECONDLAYER_API_KEY (hosted).","params":["cursor","fromHeight","limit","toHeight"]},{"name":"index_contract_calls","description":"List decoded contract calls from the Index (function name, args, result). Set `trait` (e.g. sip-010) to match calls to all contracts conforming to a standard. Note: contract-call cursors are a SEPARATE keyspace from event cursors — they are","params":["contractId","cursor","fromHeight","functionName","limit","sender","toHeight","trait"]},{"name":"index_discover","description":"Discover the Index vocabulary: every event type and its columns, allowed/equality filters, and required-non-null fields (and which types accept `trait`). Read this before building Index queries instead of guessing filters. Keyless on OSS lo"},{"name":"index_events","description":"List chain events from the Index by event type. Use this for event types without a dedicated tool (stx_*, ft_mint/burn, nft_mint/burn, print), and for trait-scoped queries: set `trait` (e.g. sip-010) to match all contracts conforming to a s","params":["assetIdentifier","caller","contractId","cursor","eventType","fromHeight","functionName","limit","map","order","recipient","sender"],"required":["eventType"]},{"name":"index_ft_transfers","description":"List decoded SIP-010 fungible-token transfers from Index. Keyless on OSS loopback; otherwise needs INSTANCE_TOKEN (OSS) or SECONDLAYER_API_KEY (hosted).","params":["assetIdentifier","contractId","cursor","fromHeight","limit","order","recipient","sender","toHeight"]},{"name":"index_nft_transfers","description":"List decoded SIP-009 non-fungible-token transfers from Index. Keyless on OSS loopback; otherwise needs INSTANCE_TOKEN (OSS) or SECONDLAYER_API_KEY (hosted).","params":["assetIdentifier","contractId","cursor","fromHeight","limit","order","recipient","sender","toHeight"]},{"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 types, subgraph column types, and presence rates. Use before writing print_event su","params":["contractId"],"required":["contractId"]},{"name":"index_rune","description":"Get one Bitcoin Rune by id or name. Returns null when not found or Runes is not configured. Keyless on OSS loopback; otherwise needs INSTANCE_TOKEN (OSS) or SECONDLAYER_API_KEY (hosted). Self-host needs the bitcoin compose profile.","params":["rune"],"required":["rune"]},{"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 SECONDLAYER_API_KEY (hosted). Self-host needs the bitcoin compose profile. `notes`","params":["address","cursor","fromHeight","kind","limit","rune","toHeight","txid"]},{"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) or SECONDLAYER_API_KEY (hosted). Self-host needs the bitcoin compose profile. `no","params":["address","cursor","limit","outpoint","rune"]},{"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 (hosted). Self-host needs the bitcoin compose profile. `notes` says when Runes is ","params":["cursor","limit","search","sort"]},{"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 transaction changed when its events don't. Read one block with blockHeight, or a contract","params":["blockHeight","contractId","cursor","fromHeight","limit","toHeight","txContext"]},{"name":"index_transactions","description":"List decoded transactions from Index. Filter by type, sender, or contract. Keyless on OSS loopback; otherwise needs INSTANCE_TOKEN (OSS) or SECONDLAYER_API_KEY (hosted).","params":["contractId","cursor","fromHeight","limit","sender","toHeight","type"]},{"name":"streams_dumps","description":"List the Streams bulk parquet dumps manifest — coverage range, latest_finalized_cursor, and per-file metadata (block range, row count, size, sha256, signed URL). This is the cold backfill path for downloading all raw data; fetch the file UR"},{"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 key's retention window. Call it before a cursor walk to know where the stream ends"},{"name":"subgraphs_scaffold","description":"Generate a subgraph from observed print events when available; ABI token transfers or public functions only when the contract has never printed. Review the TypeScript, run subgraphs_test until ok: true with written >= 1, read skipped, then ","params":["contractId","subgraphName"],"required":["contractId"]}],"rule":"Tool names and descriptions are the server's own words, copied from its tools/list answer at the dated check (descriptions cut at 240 characters, 12 parameters, 30 documented tools at most). BOTERNITY never calls these tools and does not verify what they do."},"clients":[{"client":"claude","verdict":"ready","reason":"Answered a standard MCP initialize over Streamable HTTP without sign-in on 2026-11-29; Claude accepts servers that need no sign-in.","source":"https://support.claude.com/en/articles/11175166-get-started-with-custom-connectors-using-remote-mcp"},{"client":"chatgpt","verdict":"ready","reason":"Answered a standard MCP initialize over Streamable HTTP without sign-in on 2026-11-29; ChatGPT accepts servers that need no sign-in.","source":"https://developers.openai.com/apps-sdk/build/auth"},{"client":"cursor","verdict":"ready","reason":"Answered a standard MCP initialize over Streamable HTTP without sign-in on 2026-11-29; Cursor accepts servers that need no sign-in.","source":"https://cursor.com/docs/context/mcp"},{"client":"vscode","verdict":"ready","reason":"Answered a standard MCP initialize over Streamable HTTP without sign-in on 2026-11-29; VS Code accepts servers that need no sign-in.","source":"https://code.visualstudio.com/api/extension-guides/ai/mcp"}],"connect":{"name":"secondlayer","url":"https://api.secondlayer.tools/mcp","required_headers":[],"optional_headers":[],"claude_code":"claude mcp add --transport http secondlayer https://api.secondlayer.tools/mcp","cursor":{"mcpServers":{"secondlayer":{"url":"https://api.secondlayer.tools/mcp"}}},"vscode":{"servers":{"secondlayer":{"type":"http","url":"https://api.secondlayer.tools/mcp"}}},"claude":{"connector_url":"https://api.secondlayer.tools/mcp","headers":[],"verdict":"ready","reason":"Answered a standard MCP initialize over Streamable HTTP without sign-in on 2026-11-29; Claude accepts servers that need no sign-in."},"chatgpt":{"connector_url":"https://api.secondlayer.tools/mcp","can_send_required_headers":true,"verdict":"ready","reason":"Answered a standard MCP initialize over Streamable HTTP without sign-in on 2026-11-29; ChatGPT accepts servers that need no sign-in."},"rule":"Generated from the Streamable HTTP address this server publishes in the official MCP Registry (the address the Index check connects to) and from the request headers its registry entry declares as required. Values in capitals are placeholders: get the real ones from the publisher. Nothing here is run against the server.","note":"The check of 2026-11-29 (UTC) connected to this address without any credential."},"failure":null,"signature":{"alg":"Ed25519","kid":"450c02fbfb29dba9","statement":{"v":1,"issuer":"boternity.com","kid":"450c02fbfb29dba9","name":"tools.secondlayer/secondlayer","url":"https://api.secondlayer.tools/mcp","status":"ok","score":74,"grade":"C","checked_at":"2026-11-29T05:29:25Z","protocol":"2025-06-18","tools":20,"tokens":4765,"latency_ms":182,"availability_30d_permille":1000,"checks_30d":2},"digest":"sha256:efa9b2adc57081b2b64fdb9e11bb48c85a56a6e7df48a7979c55e6e2075eef45","signature":"6yoRz8qI7pla6J46G-lZpsRDdiTq1yVUE8wpxQPFFVN71pJFPvD4YbUqGf9sKI1Wjd_7pUw_WksqvDcHOLxwDw","keys":"https://boternity.com/.well-known/boternity-index-keys.json","verify":"https://boternity.com/mcp-index/verify"},"method":"https://boternity.com/mcp-index/method","license":{"name":"CC BY 4.0","url":"https://creativecommons.org/licenses/by/4.0/"}}