{"serverId":"mcp-registry/tools.secondlayer/secondlayer","tools":[{"name":"batch_query","fixed":{"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/contracts.","inputSchema":{"type":"object","$schema":"http://json-schema.org/draft-07/schema#","required":["requests"],"properties":{"requests":{"type":"array","items":{"type":"object","required":["path"],"properties":{"path":{"type":"string","description":"Public /v1 read path"},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}}},"maxItems":10,"minItems":1,"description":"Read descriptors, executed concurrently"}},"additionalProperties":false},"annotations":{"readOnlyHint":true}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: true (inferred from the name).","verify":true}],"tokensBefore":216,"tokensAfter":216},{"name":"contracts_find","fixed":{"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.","inputSchema":{"type":"object","$schema":"http://json-schema.org/draft-07/schema#","required":["trait"],"properties":{"limit":{"type":"number","description":"Page size, 1–500 (default 100)"},"trait":{"type":"string","description":"Required. Trait to match (e.g. \"sip-010\")."},"cursor":{"type":"string","description":"Opaque cursor from a prior response's next_cursor"},"include":{"type":"string","const":"abi","description":"Set to \"abi\" to include each contract's full ABI"},"conformance":{"enum":["declared","inferred","any"],"type":"string","description":"declared = parsed from source, inferred = ABI shape-match, any = either (default)"}},"additionalProperties":false},"annotations":{"readOnlyHint":true}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: true (inferred from the name).","verify":true}],"tokensBefore":250,"tokensAfter":250},{"name":"contracts_get_abi","fixed":{"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 inspect a contract before subgraphs_scaffold.","inputSchema":{"type":"object","$schema":"http://json-schema.org/draft-07/schema#","required":["contractId"],"properties":{"contractId":{"type":"string","description":"Fully qualified contract id (e.g. SP….amm-pool-v2-01)"}},"additionalProperties":false},"annotations":{"readOnlyHint":true}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: true (inferred from the name).","verify":true}],"tokensBefore":163,"tokensAfter":163},{"name":"index_ft_transfers","fixed":{"name":"index_ft_transfers","description":"List decoded SIP-010 fungible-token transfers from Index. Reads are keyless.","inputSchema":{"type":"object","$schema":"http://json-schema.org/draft-07/schema#","properties":{"limit":{"type":"number","description":"Max rows for this page"},"order":{"enum":["asc","desc"],"type":"string","description":"asc (default) reads oldest first; desc reads newest first. A cursor only resumes under the order that issued it."},"cursor":{"type":"string","description":"Opaque cursor from a prior response's next_cursor"},"sender":{"type":"string","description":"Filter by sender principal"},"toHeight":{"type":"number","description":"End block height (inclusive)"},"recipient":{"type":"string","description":"Filter by recipient principal"},"contractId":{"type":"string","description":"Filter by contract id"},"fromHeight":{"type":"number","description":"Start block height (inclusive)"},"assetIdentifier":{"type":"string","description":"Filter by asset identifier (contract::asset), e.g. SP…sbtc-token::sbtc-token"}},"additionalProperties":false},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: false, destructiveHint: false, idempotentHint: false (inferred from the name).","verify":true}],"tokensBefore":301,"tokensAfter":301},{"name":"index_nft_transfers","fixed":{"name":"index_nft_transfers","description":"List decoded SIP-009 non-fungible-token transfers from Index. Reads are keyless.","inputSchema":{"type":"object","$schema":"http://json-schema.org/draft-07/schema#","properties":{"limit":{"type":"number","description":"Max rows for this page"},"order":{"enum":["asc","desc"],"type":"string","description":"asc (default) reads oldest first; desc reads newest first. A cursor only resumes under the order that issued it."},"cursor":{"type":"string","description":"Opaque cursor from a prior response's next_cursor"},"sender":{"type":"string","description":"Filter by sender principal"},"toHeight":{"type":"number","description":"End block height (inclusive)"},"recipient":{"type":"string","description":"Filter by recipient principal"},"contractId":{"type":"string","description":"Filter by contract id"},"fromHeight":{"type":"number","description":"Start block height (inclusive)"},"assetIdentifier":{"type":"string","description":"Filter by asset identifier (contract::asset)"}},"additionalProperties":false},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: false, destructiveHint: false, idempotentHint: false (inferred from the name).","verify":true}],"tokensBefore":293,"tokensAfter":293},{"name":"index_state_writes","fixed":{"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's writes over a height range.","inputSchema":{"type":"object","$schema":"http://json-schema.org/draft-07/schema#","properties":{"limit":{"type":"number","description":"Max rows for this page"},"cursor":{"type":"string","description":"Opaque cursor from a prior response's next_cursor"},"toHeight":{"type":"number","description":"End block height (inclusive)"},"txContext":{"type":"boolean","description":"Join the writing transaction onto each row"},"contractId":{"type":"string","description":"Filter by contract id"},"fromHeight":{"type":"number","description":"Start block height (inclusive)"},"blockHeight":{"type":"number","description":"Read one block (excludes fromHeight/toHeight)"}},"additionalProperties":false},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: false, destructiveHint: false, idempotentHint: false (inferred from the name).","verify":true}],"tokensBefore":280,"tokensAfter":280}],"toolsChanged":6,"tokensSaved":0,"todo":[],"note":"Deterministic fixes. Changes marked verify need a human look before shipping (renames, inferred annotations, inferred types, removed text). Parameter descriptions in `todo` need to be written by someone who knows the API."}