{"id":"tools.secondlayer/secondlayer","slug":"tools-secondlayer-secondlayer","title":"secondlayer","description":"Stacks chain data: contracts, events, transfers, subgraph scaffolds. Hosted with browser sign-in.","version":"11.6.8","publisher":{"kind":"domain","id":"secondlayer.tools","label":"secondlayer.tools","url":"https://secondlayer.tools"},"website":"https://www.secondlayer.tools/docs/mcp","repository":"https://github.com/ryanwaits/secondlayer","remotes":[{"type":"streamable-http","url":"https://api.secondlayer.tools/mcp"}],"packages":[{"registryType":"npm","identifier":"@secondlayer/mcp","version":"11.6.8","transport":{"type":"stdio"},"environmentVariables":[{"description":"Account API key (sk-sl_*) for the hosted API: credits, writes.","format":"string","isSecret":true,"name":"SECONDLAYER_API_KEY"},{"description":"Instance API URL. Use https://api.secondlayer.tools for hosted.","format":"string","default":"http://127.0.0.1:3800","name":"SECONDLAYER_API_URL"}]}],"published":"2026-11-18","updated":"2026-11-18","status":"online","auth":"","latency_ms":1282,"checked":"2026-11-19","uptime":100,"checks":3,"tools":[{"name":"subgraphs_scaffold","title":"","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 subgraphs_deploy. dryRun is DDL only.","read_only":false},{"name":"index_ft_transfers","title":"","description":"List decoded SIP-010 fungible-token transfers from Index. Reads are keyless.","read_only":false},{"name":"index_nft_transfers","title":"","description":"List decoded SIP-009 non-fungible-token transfers from Index. Reads are keyless.","read_only":false},{"name":"index_events","title":"","description":"List decoded 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 standard — pair with contracts_find to discover traits. For ft/nft transfers without a trait prefer index_ft_transfers / index_nft_transfers.","read_only":false},{"name":"index_contract_calls","title":"","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 not interchangeable.","read_only":false},{"name":"index_blocks","title":"","description":"List decoded blocks from Index. Reads are keyless.","read_only":false},{"name":"index_transactions","title":"","description":"List decoded transactions from Index. Filter by type, sender, or contract. Reads are keyless.","read_only":false},{"name":"index_print_schema","title":"","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 subgraph handlers to learn what's on e.data. Anonymous read.","read_only":false},{"name":"index_discover","title":"","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. Anonymous read.","read_only":false},{"name":"batch_query","title":"","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/contracts.","read_only":false},{"name":"streams_tip","title":"","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, and after an ingest to check lag.","read_only":false},{"name":"streams_dumps","title":"","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 URLs directly (e.g. with DuckDB). Requires the dumps base URL to be configured (SL_STREAMS_DUMPS_URL). For live reads use REST GET /v1/streams/events; for tip/lag","read_only":false},{"name":"contracts_find","title":"","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.","read_only":false},{"name":"contracts_get_abi","title":"","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 inspect a contract before subgraphs_scaffold.","read_only":false},{"name":"account_whoami","title":"","description":"Show the archive account email at api.secondlayer.tools, not the self-host instance.","read_only":false}],"server_info":{"name":"secondlayer","version":"11.6.8","icons":[{"src":"https://www.secondlayer.tools/icon.svg","mimeType":"image/svg+xml","sizes":["any"]},{"src":"https://www.secondlayer.tools/apple-icon","mimeType":"image/png","sizes":["180x180"]}]},"category":"legal","tags":["browser","crypto","data"],"kind":"remote","source":"registry","submitted":{},"first_party":true,"domain_rank":null,"score":100,"indexable":true,"first_seen":"2026-10-29","stars":0,"badges":["new"],"sponsor":null,"page":"https://agentsindex.org/agents/tools-secondlayer-secondlayer/"}