{"uid":"cap_8Ay7in4It5pzY_xhcg_c_","slug":"source-packs-declared-bound-token-audit-6ea56b24","name":"Source Packs - Declared-Bound Token Audit","description":"Compare caller-declared token counts with per-source and total pack token ceilings. No tokenizer, packing execution or claim that all required evidence fits. Offline typed nonpersonal metadata only. Result retention: 24 hours; minimal receipt metadata: 90 days.","url":"https://www.mahastrategies.com/api/v1/context/source-packs/declared-bound-audit?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"sources":{"type":"array","maxItems":32,"minItems":1},"dataClass":{"enum":["public","synthetic"],"type":"string"},"maximumPackTokens":{"type":"integer","maximum":1000000,"minimum":0},"maximumSourceTokens":{"type":"integer","maximum":1000000,"minimum":0},"nonpersonalMetadata":{"type":"boolean","const":true}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.010094","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.010094/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.010094","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.010094","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_L6txL2TNAZv_LZdkFkBo4","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.010094","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates caller-declared token counts against per-source and total pack token ceilings without executing tokenization or packing","exampleAgentPrompt":"Can you audit my declared token counts against pack limits — I have 8 sources with public data, a per-source ceiling of 20000 tokens, and a total pack ceiling of 100000 tokens?","exampleUseCases":[{"title":"LLM context budget pre-check","prompt":"Before I assemble my RAG context pack, check that my 12 public sources with declared counts don't exceed a per-source ceiling of 15000 tokens and a total pack ceiling of 120000 tokens."},{"title":"Synthetic dataset token compliance audit","prompt":"I have 5 synthetic data sources I want to pack — can you audit whether my declared token counts stay within a 10000-token-per-source limit and a 40000-token total pack ceiling?"},{"title":"Multi-source token ceiling validation for pipeline","prompt":"Audit my declared token counts for 20 public sources: each source should stay under 25000 tokens and the whole pack shouldn't exceed 200000 tokens total — flag any violations."}],"resultDescription":"Returns a comparison of each caller-declared source token count against the per-source ceiling and a comparison of the total declared tokens against the pack ceiling, identifying which sources or the aggregate exceed bounds. Includes a minimal receipt with metadata retained for 90 days; full result retained for 24 hours. No tokenization is executed; only declared values are compared.","failureModes":["Sources array empty or exceeds 32 items — request rejected","maximumPackTokens or maximumSourceTokens out of range (0–1,000,000) — validation error","dataClass not one of 'public' or 'synthetic' — schema rejection","nonpersonalMetadata not explicitly set to true — request rejected","Malformed source entries — parsing error returned"],"whenToPreferThis":"Use this endpoint when you need a fast, offline check that caller-declared token counts are within ceiling bounds before committing to context packing — without running a tokenizer or actually assembling the pack. Prefer this over full packing pipelines when you only need a budget pre-flight check on nonpersonal public or synthetic metadata. Ideal for pipeline validation steps that need a cheap, deterministic bound audit with an audit receipt.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T06:39:19.561Z","isFirstParty":false,"canonicalSlug":"source-packs-declared-bound-token-audit-6ea56b24"}