{"at":"2026-11-23T00:37:12.626Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T00:37:13.511Z","dir":"received","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","result":{"_meta":{"io.modelcontextprotocol/serverInfo":{"name":"guard-core","title":"Guard Core","version":"1.7.0","websiteUrl":"https://guard-core.com"}},"cacheScope":"private","capabilities":{"prompts":{"listChanged":true},"resources":{"listChanged":true,"subscribe":true},"tools":{"listChanged":true}},"instructions":"Answers Guard security-library questions from the libraries installed in the interpreter running this server, not from generic training data. Pick a tool by question. Is my config valid: validate_config (catches unknown and deprecated keys that pydantic silently drops). Which setting controls a behaviour: config_fields. What do the docs say: search_docs, then get_doc with a returned package and path. Would this request be flagged, and by which pattern: check_payload (detection stage only). Which package guards my framework, and how do I install it: adapter_setup for one adapter, wire_agent for the telemetry agent, ecosystem for the full five-language survey. Which versions are installed versus documented: versions, which is worth calling first. All tools are read-only and idempotent: nothing is fetched from the network and nothing is modified. Errors come back as an object with an error key (and a hint where one helps) instead of being raised.","resultType":"complete","supportedVersions":["2026-07-28"],"ttlMs":0}}}
{"at":"2026-11-23T00:37:13.511Z","dir":"sent","era":"server_discover","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T00:37:13.514Z","dir":"received","era":"server_discover","message":{"id":2,"jsonrpc":"2.0","result":{"_meta":{"io.modelcontextprotocol/serverInfo":{"name":"guard-core","title":"Guard Core","version":"1.7.0","websiteUrl":"https://guard-core.com"}},"cacheScope":"private","resultType":"complete","tools":[{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Report which Guard libraries this server can introspect, and at which version.\n\nCall this first, before trusting any answer about a version-specific feature. It\ntakes no arguments.\n\nReturns guard_core_mcp (this server's version), installed (the guard-core,\nfastapi-guard and guard-agent versions live in this interpreter), and\ndocs_bundled_for and knowledge_bundled_for (the versions the bundled docs and the\nhand-written ecosystem notes describe).\n\nA null installed version means that library is absent from the interpreter running\nthis server, so validate_config, config_fields and check_payload cannot answer for\nit and any answer would be a guess. An installed version that differs from\ndocs_bundled_for is normal and only means the docs may lag or lead the install.\n","inputSchema":{"properties":{},"title":"versionsArguments","type":"object"},"name":"versions","outputSchema":{"additionalProperties":true,"title":"versionsDictOutput","type":"object"},"title":"Guard versions"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Check a Guard config dict against the installed library's real pydantic model.\n\nUse this to confirm a config is valid, or to find out why a setting seems to have\nno effect. Use config_fields instead when you do not yet know the setting's name.\n\nReturns valid (bool), package, version, model, errors (type errors, each with\nfield, message and input), unknown_fields (each with name and did_you_mean\nsuggestions), deprecated (field and message) and construction_warnings. Unknown\nkeys matter: pydantic silently ignores them, so a misspelled setting does nothing\nat runtime and raises no error anywhere else. construction_warnings carries\nguard-core's own logged-not-raised misconfiguration warnings: an unknown\nconstructor keyword, a trusted_proxies or whitelist /0 network, and\nenabled_detection_categories empty while penetration detection is enabled.\n\nRead-only: the config is validated in memory and never applied. If the library is\nnot installed, or package is not recognized, returns an object with an error key\n(plus a hint when the cause is a missing install) instead of raising.\n","inputSchema":{"properties":{"config":{"additionalProperties":true,"description":"The config as a JSON object of field names to values, exactly as you would pass it to the model's constructor","examples":[{"enable_rate_limiting":true,"rate_limit":100}],"title":"Config","type":"object"},"package":{"default":"fastapi-guard","description":"Which Guard library's installed model to validate against. One of fastapi-guard (SecurityConfig), guard-core (SecurityConfig) or guard-agent (AgentConfig). Any other value returns an error object","examples":["fastapi-guard","guard-core","guard-agent"],"title":"Package","type":"string"}},"required":["config"],"title":"validate_configArguments","type":"object"},"name":"validate_config","outputSchema":{"additionalProperties":true,"title":"validate_configDictOutput","type":"object"},"title":"Validate config"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Find a Guard config setting by name or by what it does, with type and default.\n\nUse this to learn what a setting means, or whether a setting for some behaviour\nexists at all. Use validate_config instead to check a whole config you already\nwrote, and search_docs for prose explanations rather than field metadata.\n\nReturns package, version, query, exact and matches. An exact field name fills\nexact with that field's name, type, default, required flag and description\n(otherwise exact is null). Every query also fills matches with each other field\nwhose name or description contains every word of the query; if nothing matches\nat all, matches falls back to the closest field names by spelling.\n\nRead-only, in-memory lookup. If the library is not installed, or package is not\nrecognized, returns an object with an error key instead of raising.\n","inputSchema":{"properties":{"package":{"default":"fastapi-guard","description":"Which Guard library's installed model to search. One of fastapi-guard, guard-core or guard-agent. Any other value returns an error object","examples":["fastapi-guard","guard-core","guard-agent"],"title":"Package","type":"string"},"query":{"description":"Either an exact config field name or plain words describing the behaviour. Matching is case-insensitive and word order does not matter","examples":["rate_limit","ban suspicious ips","redis"],"title":"Query","type":"string"}},"required":["query"],"title":"config_fieldsArguments","type":"object"},"name":"config_fields","outputSchema":{"additionalProperties":true,"title":"config_fieldsDictOutput","type":"object"},"title":"Config fields lookup"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Search the bundled Guard documentation and return ranked, citable pages.\n\nUse this to answer how or why questions from documentation, and to find the page\nto read in full with get_doc. Use config_fields instead for a setting's type and\ndefault, and adapter_setup or wire_agent for install and wiring steps.\n\nReturns query and results. Each result has package, path, heading, snippet, url\n(the live documentation page to cite) and score. Pass a result's package and path\nstraight to get_doc to read the whole page.\n\nRead-only and offline: it searches the docs shipped inside this package. Unlike\nvalidate_config, an unrecognized package is not an error, it silently matches\nnothing, so an empty results list means either a real gap in the docs or a\nmistyped package name; retry with package omitted before concluding the former.\n","inputSchema":{"properties":{"limit":{"default":5,"description":"Maximum number of results to return, highest score first","examples":[5,10],"title":"Limit","type":"integer"},"package":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"Restrict the search to one library, for example fastapi-guard, guard-core or guard-agent. Omit to search every bundled library. An unrecognized name silently matches nothing","examples":["fastapi-guard","guard-core","guard-agent"],"title":"Package"},"query":{"description":"Words to look for in the bundled documentation. Pages are ranked by how often the words occur, so use specific terms","examples":["rate limiting","trusted proxies","agent retry"],"title":"Query","type":"string"}},"required":["query"],"title":"search_docsArguments","type":"object"},"name":"search_docs","outputSchema":{"additionalProperties":true,"title":"search_docsDictOutput","type":"object"},"title":"Search docs"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Return the full text of one bundled Guard documentation page.\n\nUse this after search_docs when a snippet is not enough; it does not search. The\npackage and path come from a search_docs result.\n\nReturns package, path, url (the live page to cite) and content (the full markdown).\nAn unknown package or a path that does not exist returns {\"error\": \"unknown doc\npath\"}; the two cases are not distinguished. Read-only and offline, and it cannot\nread files outside the bundled documentation.\n","inputSchema":{"properties":{"package":{"description":"The library the page belongs to, copied from a search_docs result or from the keys versions reports under docs_bundled_for and knowledge_bundled_for","examples":["fastapi-guard","guard-core-go"],"title":"Package","type":"string"},"path":{"description":"The page path relative to the library's bundled docs, copied from a search_docs result. Paths outside the bundled docs are rejected","examples":["installation.md","tutorial/ip-management/rate-limiter.md"],"title":"Path","type":"string"}},"required":["package","path"],"title":"get_docArguments","type":"object"},"name":"get_doc","outputSchema":{"additionalProperties":true,"title":"get_docDictOutput","type":"object"},"title":"Get doc page"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Run one synthetic request through guard-core's real penetration-detection engine.\n\nUse this to confirm that an attack payload is caught, or to explain why a benign\nrequest was flagged. Use validate_config instead to check a config, not a request.\n\nReturns is_threat (bool), trigger_info (the matched parameter and pattern, empty\nwhen clean), threat_categories (for example sqli or xss), threat_scores (a score\nper category) and elapsed_ms. Verdicts come from the same detection path a live\nadapter runs. Read-only and sandboxed: the request is never sent anywhere and\nenable_redis is forced off so Redis is never touched. If guard-core is not\ninstalled, returns an object with an error key and a hint instead of raising.\n\nThis is the detection stage alone, not the whole middleware pipeline. A real\nrequest also passes IP rules, rate limiting, user-agent and cloud-provider checks,\nany of which can block it before detection runs, and a whitelisted IP skips\ndetection entirely. A clean verdict here does not promise the request reaches the\nroute, and a threat verdict does not promise a running app would block it.\n\nThe scan is bounded, so a payload past a cap is judged on the scanned prefix only:\ndetection_max_scan_values caps values inspected (default 512),\ndetection_max_scan_chars caps total characters scanned (default 65536), and\ndetection_max_json_depth (default 32) caps how deep a JSON body is walked before\nthe rest is scanned as one serialized value. These caps and the enhanced\ndetection path apply from guard-core 3.15.0; versions reports what is installed.\n","inputSchema":{"properties":{"body":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"null"}],"default":null,"description":"Request body as a raw string, or a JSON object or array, which is serialized for you. Omit for a bodyless request","examples":["{\"name\": \"<script>alert(1)</script>\"}"],"title":"Body"},"config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"description":"SecurityConfig fields to override guard-core's defaults, as a JSON object, to see how a setting changes the verdict. enable_redis is always forced off","examples":[{"enabled_detection_categories":["sqli","xss"]}],"title":"Config"},"headers":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"default":null,"description":"Request headers as a JSON object of names to values. Names are matched case-insensitively","examples":[{"User-Agent":"sqlmap/1.7"}],"title":"Headers"},"method":{"default":"GET","description":"HTTP method of the request to test","examples":["GET","POST"],"title":"Method","type":"string"},"path":{"default":"/","description":"Request path of the request to test","examples":["/login","/api/v1/items"],"title":"Path","type":"string"},"query":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"default":null,"description":"Query-string parameters as a JSON object of names to string values","examples":[{"q":"1' OR '1'='1"}],"title":"Query"}},"title":"check_payloadArguments","type":"object"},"name":"check_payload","outputSchema":{"additionalProperties":true,"title":"check_payloadDictOutput","type":"object"},"title":"Check payload"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Survey the whole Guard ecosystem: every language, engine, adapter and agent.\n\nUse this to resolve a package name or compare languages. It takes no arguments.\nWhen you already know the language and framework, use adapter_setup for one\nadapter or wire_agent for the telemetry agent instead, which return less.\n\nReturns the full registry for five languages (python, go, typescript, php, rust).\nEach language entry holds its engine (name, install command, version,\nrelease_status, conformance status), every framework adapter with a verified\nquick-start snippet and the Python adapter it maps to, and its telemetry agent\nwith delivery semantics. A conformance block describes the frozen spec-4.0.2\ncorpus every engine is tested against, and a saas block documents the\nguard-core-app ingestion contract all agents share.\n\nrelease_status is published (live on a package registry), tagged (a git tag\nexists, registry presence may lag) or untagged (install from source, main or a\npath dependency). Read it together with notes: several Go, PHP and Rust packages\ncarry tags or version constants that registry publishing has not caught up with.\nRead-only static data that works with or without the Guard libraries installed.\n","inputSchema":{"properties":{},"title":"ecosystemArguments","type":"object"},"name":"ecosystem","outputSchema":{"additionalProperties":true,"title":"ecosystemDictOutput","type":"object"},"title":"Ecosystem registry"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Get the install command and a verified minimal integration for one Guard adapter.\n\nUse this when you know the language and web framework and want working setup code.\nUse ecosystem instead to survey every adapter, and wire_agent to set up telemetry.\n\nReturns language, engine (package, install command, release_status and conformance\nstatus of the engine the adapter depends on) and adapter (install command,\nrelease_status, its role in the framework, the Python adapter it mirrors, and a\nquick-start snippet taken verbatim from the adapter's README). Snippets reflect\nthe README at the time this server was built; when release_status is untagged,\nre-check the repository. An unknown language or framework returns an object with\nan error key instead of raising. Read-only static data, works without the Guard\nlibraries installed.\n","inputSchema":{"properties":{"framework":{"description":"The adapter slug for that language, or the adapter package name. An unknown slug returns an error object listing the valid ones","examples":["fastapi","gin","fastify","laravel","axum"],"title":"Framework","type":"string"},"language":{"description":"The language of the adapter. One of python, go, typescript, php or rust. Any other value returns an error object","examples":["python","go","typescript","php","rust"],"title":"Language","type":"string"}},"required":["language","framework"],"title":"adapter_setupArguments","type":"object"},"name":"adapter_setup","outputSchema":{"additionalProperties":true,"title":"adapter_setupDictOutput","type":"object"},"title":"Adapter setup"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Get how to set up the Guard telemetry agent for one language.\n\nUse this to ship security events and metrics to the guard-core-app backend. Use\nadapter_setup instead for the request-blocking middleware itself.\n\nReturns language, agent (package, install command, release_status, quick-start\nsnippet, and a summary of its buffer, flush, overflow and retry semantics),\ningestion (the guard-core-app contract the agent ships against: endpoints,\nheaders, HMAC signing, size limits and response semantics) and framework_note.\nFor python the note points at the bundled guard-agent doc page for the adapter;\nfor other languages the agent is standalone and the note says so. An unknown\nlanguage or framework returns an object with an error key instead of raising.\nRead-only static data, works without the Guard libraries installed.\n","inputSchema":{"properties":{"framework":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"Optional adapter slug of that language, to add a note on how the agent hooks into that adapter. Omit for the agent alone","examples":["fastapi","gin","laravel"],"title":"Framework"},"language":{"description":"The language whose telemetry agent to set up. One of python, go, typescript, php or rust. Any other value returns an error object","examples":["python","go","typescript","php","rust"],"title":"Language","type":"string"}},"required":["language"],"title":"wire_agentArguments","type":"object"},"name":"wire_agent","outputSchema":{"additionalProperties":true,"title":"wire_agentDictOutput","type":"object"},"title":"Wire agent"}],"ttlMs":0}}}
{"at":"2026-11-23T00:37:13.665Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T00:37:14.566Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"prompts":{"listChanged":false},"resources":{"listChanged":false,"subscribe":false},"tools":{"listChanged":false}},"instructions":"Answers Guard security-library questions from the libraries installed in the interpreter running this server, not from generic training data. Pick a tool by question. Is my config valid: validate_config (catches unknown and deprecated keys that pydantic silently drops). Which setting controls a behaviour: config_fields. What do the docs say: search_docs, then get_doc with a returned package and path. Would this request be flagged, and by which pattern: check_payload (detection stage only). Which package guards my framework, and how do I install it: adapter_setup for one adapter, wire_agent for the telemetry agent, ecosystem for the full five-language survey. Which versions are installed versus documented: versions, which is worth calling first. All tools are read-only and idempotent: nothing is fetched from the network and nothing is modified. Errors come back as an object with an error key (and a hint where one helps) instead of being raised.","protocolVersion":"2025-11-25","serverInfo":{"name":"guard-core","title":"Guard Core","version":"1.7.0","websiteUrl":"https://guard-core.com"}}}}
{"at":"2026-11-23T00:37:14.566Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T00:37:14.566Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T00:37:14.570Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Report which Guard libraries this server can introspect, and at which version.\n\nCall this first, before trusting any answer about a version-specific feature. It\ntakes no arguments.\n\nReturns guard_core_mcp (this server's version), installed (the guard-core,\nfastapi-guard and guard-agent versions live in this interpreter), and\ndocs_bundled_for and knowledge_bundled_for (the versions the bundled docs and the\nhand-written ecosystem notes describe).\n\nA null installed version means that library is absent from the interpreter running\nthis server, so validate_config, config_fields and check_payload cannot answer for\nit and any answer would be a guess. An installed version that differs from\ndocs_bundled_for is normal and only means the docs may lag or lead the install.\n","inputSchema":{"properties":{},"title":"versionsArguments","type":"object"},"name":"versions","outputSchema":{"additionalProperties":true,"title":"versionsDictOutput","type":"object"},"title":"Guard versions"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Check a Guard config dict against the installed library's real pydantic model.\n\nUse this to confirm a config is valid, or to find out why a setting seems to have\nno effect. Use config_fields instead when you do not yet know the setting's name.\n\nReturns valid (bool), package, version, model, errors (type errors, each with\nfield, message and input), unknown_fields (each with name and did_you_mean\nsuggestions), deprecated (field and message) and construction_warnings. Unknown\nkeys matter: pydantic silently ignores them, so a misspelled setting does nothing\nat runtime and raises no error anywhere else. construction_warnings carries\nguard-core's own logged-not-raised misconfiguration warnings: an unknown\nconstructor keyword, a trusted_proxies or whitelist /0 network, and\nenabled_detection_categories empty while penetration detection is enabled.\n\nRead-only: the config is validated in memory and never applied. If the library is\nnot installed, or package is not recognized, returns an object with an error key\n(plus a hint when the cause is a missing install) instead of raising.\n","inputSchema":{"properties":{"config":{"additionalProperties":true,"description":"The config as a JSON object of field names to values, exactly as you would pass it to the model's constructor","examples":[{"enable_rate_limiting":true,"rate_limit":100}],"title":"Config","type":"object"},"package":{"default":"fastapi-guard","description":"Which Guard library's installed model to validate against. One of fastapi-guard (SecurityConfig), guard-core (SecurityConfig) or guard-agent (AgentConfig). Any other value returns an error object","examples":["fastapi-guard","guard-core","guard-agent"],"title":"Package","type":"string"}},"required":["config"],"title":"validate_configArguments","type":"object"},"name":"validate_config","outputSchema":{"additionalProperties":true,"title":"validate_configDictOutput","type":"object"},"title":"Validate config"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Find a Guard config setting by name or by what it does, with type and default.\n\nUse this to learn what a setting means, or whether a setting for some behaviour\nexists at all. Use validate_config instead to check a whole config you already\nwrote, and search_docs for prose explanations rather than field metadata.\n\nReturns package, version, query, exact and matches. An exact field name fills\nexact with that field's name, type, default, required flag and description\n(otherwise exact is null). Every query also fills matches with each other field\nwhose name or description contains every word of the query; if nothing matches\nat all, matches falls back to the closest field names by spelling.\n\nRead-only, in-memory lookup. If the library is not installed, or package is not\nrecognized, returns an object with an error key instead of raising.\n","inputSchema":{"properties":{"package":{"default":"fastapi-guard","description":"Which Guard library's installed model to search. One of fastapi-guard, guard-core or guard-agent. Any other value returns an error object","examples":["fastapi-guard","guard-core","guard-agent"],"title":"Package","type":"string"},"query":{"description":"Either an exact config field name or plain words describing the behaviour. Matching is case-insensitive and word order does not matter","examples":["rate_limit","ban suspicious ips","redis"],"title":"Query","type":"string"}},"required":["query"],"title":"config_fieldsArguments","type":"object"},"name":"config_fields","outputSchema":{"additionalProperties":true,"title":"config_fieldsDictOutput","type":"object"},"title":"Config fields lookup"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Search the bundled Guard documentation and return ranked, citable pages.\n\nUse this to answer how or why questions from documentation, and to find the page\nto read in full with get_doc. Use config_fields instead for a setting's type and\ndefault, and adapter_setup or wire_agent for install and wiring steps.\n\nReturns query and results. Each result has package, path, heading, snippet, url\n(the live documentation page to cite) and score. Pass a result's package and path\nstraight to get_doc to read the whole page.\n\nRead-only and offline: it searches the docs shipped inside this package. Unlike\nvalidate_config, an unrecognized package is not an error, it silently matches\nnothing, so an empty results list means either a real gap in the docs or a\nmistyped package name; retry with package omitted before concluding the former.\n","inputSchema":{"properties":{"limit":{"default":5,"description":"Maximum number of results to return, highest score first","examples":[5,10],"title":"Limit","type":"integer"},"package":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"Restrict the search to one library, for example fastapi-guard, guard-core or guard-agent. Omit to search every bundled library. An unrecognized name silently matches nothing","examples":["fastapi-guard","guard-core","guard-agent"],"title":"Package"},"query":{"description":"Words to look for in the bundled documentation. Pages are ranked by how often the words occur, so use specific terms","examples":["rate limiting","trusted proxies","agent retry"],"title":"Query","type":"string"}},"required":["query"],"title":"search_docsArguments","type":"object"},"name":"search_docs","outputSchema":{"additionalProperties":true,"title":"search_docsDictOutput","type":"object"},"title":"Search docs"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Return the full text of one bundled Guard documentation page.\n\nUse this after search_docs when a snippet is not enough; it does not search. The\npackage and path come from a search_docs result.\n\nReturns package, path, url (the live page to cite) and content (the full markdown).\nAn unknown package or a path that does not exist returns {\"error\": \"unknown doc\npath\"}; the two cases are not distinguished. Read-only and offline, and it cannot\nread files outside the bundled documentation.\n","inputSchema":{"properties":{"package":{"description":"The library the page belongs to, copied from a search_docs result or from the keys versions reports under docs_bundled_for and knowledge_bundled_for","examples":["fastapi-guard","guard-core-go"],"title":"Package","type":"string"},"path":{"description":"The page path relative to the library's bundled docs, copied from a search_docs result. Paths outside the bundled docs are rejected","examples":["installation.md","tutorial/ip-management/rate-limiter.md"],"title":"Path","type":"string"}},"required":["package","path"],"title":"get_docArguments","type":"object"},"name":"get_doc","outputSchema":{"additionalProperties":true,"title":"get_docDictOutput","type":"object"},"title":"Get doc page"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Run one synthetic request through guard-core's real penetration-detection engine.\n\nUse this to confirm that an attack payload is caught, or to explain why a benign\nrequest was flagged. Use validate_config instead to check a config, not a request.\n\nReturns is_threat (bool), trigger_info (the matched parameter and pattern, empty\nwhen clean), threat_categories (for example sqli or xss), threat_scores (a score\nper category) and elapsed_ms. Verdicts come from the same detection path a live\nadapter runs. Read-only and sandboxed: the request is never sent anywhere and\nenable_redis is forced off so Redis is never touched. If guard-core is not\ninstalled, returns an object with an error key and a hint instead of raising.\n\nThis is the detection stage alone, not the whole middleware pipeline. A real\nrequest also passes IP rules, rate limiting, user-agent and cloud-provider checks,\nany of which can block it before detection runs, and a whitelisted IP skips\ndetection entirely. A clean verdict here does not promise the request reaches the\nroute, and a threat verdict does not promise a running app would block it.\n\nThe scan is bounded, so a payload past a cap is judged on the scanned prefix only:\ndetection_max_scan_values caps values inspected (default 512),\ndetection_max_scan_chars caps total characters scanned (default 65536), and\ndetection_max_json_depth (default 32) caps how deep a JSON body is walked before\nthe rest is scanned as one serialized value. These caps and the enhanced\ndetection path apply from guard-core 3.15.0; versions reports what is installed.\n","inputSchema":{"properties":{"body":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"null"}],"default":null,"description":"Request body as a raw string, or a JSON object or array, which is serialized for you. Omit for a bodyless request","examples":["{\"name\": \"<script>alert(1)</script>\"}"],"title":"Body"},"config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"description":"SecurityConfig fields to override guard-core's defaults, as a JSON object, to see how a setting changes the verdict. enable_redis is always forced off","examples":[{"enabled_detection_categories":["sqli","xss"]}],"title":"Config"},"headers":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"default":null,"description":"Request headers as a JSON object of names to values. Names are matched case-insensitively","examples":[{"User-Agent":"sqlmap/1.7"}],"title":"Headers"},"method":{"default":"GET","description":"HTTP method of the request to test","examples":["GET","POST"],"title":"Method","type":"string"},"path":{"default":"/","description":"Request path of the request to test","examples":["/login","/api/v1/items"],"title":"Path","type":"string"},"query":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"default":null,"description":"Query-string parameters as a JSON object of names to string values","examples":[{"q":"1' OR '1'='1"}],"title":"Query"}},"title":"check_payloadArguments","type":"object"},"name":"check_payload","outputSchema":{"additionalProperties":true,"title":"check_payloadDictOutput","type":"object"},"title":"Check payload"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Survey the whole Guard ecosystem: every language, engine, adapter and agent.\n\nUse this to resolve a package name or compare languages. It takes no arguments.\nWhen you already know the language and framework, use adapter_setup for one\nadapter or wire_agent for the telemetry agent instead, which return less.\n\nReturns the full registry for five languages (python, go, typescript, php, rust).\nEach language entry holds its engine (name, install command, version,\nrelease_status, conformance status), every framework adapter with a verified\nquick-start snippet and the Python adapter it maps to, and its telemetry agent\nwith delivery semantics. A conformance block describes the frozen spec-4.0.2\ncorpus every engine is tested against, and a saas block documents the\nguard-core-app ingestion contract all agents share.\n\nrelease_status is published (live on a package registry), tagged (a git tag\nexists, registry presence may lag) or untagged (install from source, main or a\npath dependency). Read it together with notes: several Go, PHP and Rust packages\ncarry tags or version constants that registry publishing has not caught up with.\nRead-only static data that works with or without the Guard libraries installed.\n","inputSchema":{"properties":{},"title":"ecosystemArguments","type":"object"},"name":"ecosystem","outputSchema":{"additionalProperties":true,"title":"ecosystemDictOutput","type":"object"},"title":"Ecosystem registry"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Get the install command and a verified minimal integration for one Guard adapter.\n\nUse this when you know the language and web framework and want working setup code.\nUse ecosystem instead to survey every adapter, and wire_agent to set up telemetry.\n\nReturns language, engine (package, install command, release_status and conformance\nstatus of the engine the adapter depends on) and adapter (install command,\nrelease_status, its role in the framework, the Python adapter it mirrors, and a\nquick-start snippet taken verbatim from the adapter's README). Snippets reflect\nthe README at the time this server was built; when release_status is untagged,\nre-check the repository. An unknown language or framework returns an object with\nan error key instead of raising. Read-only static data, works without the Guard\nlibraries installed.\n","inputSchema":{"properties":{"framework":{"description":"The adapter slug for that language, or the adapter package name. An unknown slug returns an error object listing the valid ones","examples":["fastapi","gin","fastify","laravel","axum"],"title":"Framework","type":"string"},"language":{"description":"The language of the adapter. One of python, go, typescript, php or rust. Any other value returns an error object","examples":["python","go","typescript","php","rust"],"title":"Language","type":"string"}},"required":["language","framework"],"title":"adapter_setupArguments","type":"object"},"name":"adapter_setup","outputSchema":{"additionalProperties":true,"title":"adapter_setupDictOutput","type":"object"},"title":"Adapter setup"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Get how to set up the Guard telemetry agent for one language.\n\nUse this to ship security events and metrics to the guard-core-app backend. Use\nadapter_setup instead for the request-blocking middleware itself.\n\nReturns language, agent (package, install command, release_status, quick-start\nsnippet, and a summary of its buffer, flush, overflow and retry semantics),\ningestion (the guard-core-app contract the agent ships against: endpoints,\nheaders, HMAC signing, size limits and response semantics) and framework_note.\nFor python the note points at the bundled guard-agent doc page for the adapter;\nfor other languages the agent is standalone and the note says so. An unknown\nlanguage or framework returns an object with an error key instead of raising.\nRead-only static data, works without the Guard libraries installed.\n","inputSchema":{"properties":{"framework":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"Optional adapter slug of that language, to add a note on how the agent hooks into that adapter. Omit for the agent alone","examples":["fastapi","gin","laravel"],"title":"Framework"},"language":{"description":"The language whose telemetry agent to set up. One of python, go, typescript, php or rust. Any other value returns an error object","examples":["python","go","typescript","php","rust"],"title":"Language","type":"string"}},"required":["language"],"title":"wire_agentArguments","type":"object"},"name":"wire_agent","outputSchema":{"additionalProperties":true,"title":"wire_agentDictOutput","type":"object"},"title":"Wire agent"}]}}}
