{"playbook":"Agents as users","url":"https://agentwranglers.se/playbook/agents-as-users","updated":"2026-10-27","license":"https://creativecommons.org/licenses/by/4.0/","credit":"Required by the licence: credit Agent Wranglers with a link to the rule or playbook you used.","ids":"Each rule has an id, such as PAY-14, that never changes. Open a rule by its id at /r/PAY-14. Its revision changes whenever its content changes.","how":"Each rule's How and Measured text is on its own page: add .md to its url.","rules":[{"id":"AGT-1","revision":"8b54c3597490","updated":"2026-10-27","name":"Verify who an agent is before you trust it","level":"Recommended","rule":"Treat a request as coming from a named agent operator only when its Web Bot Auth signature verifies. A crawler that does not sign proves itself by an address in its operator's published ranges. Never trust the user agent string.","check":"A test sends four requests with a known test key. The valid one is accepted. One with an `expires` in the past, one with a different tag, and one that does not cover `signature-agent` are each treated as unsigned. A request with a well-known crawler's user agent from a test machine gets no more access than a normal visitor.","check_type":"http","url":"https://agentwranglers.se/playbook/agents-as-users/identifying-agents/verify-web-bot-auth","related":["/playbook/agents-as-users/identifying-agents/safe-key-directory-fetch","/playbook/agents-as-users/ready-for-ai-agents/web-bot-auth"],"sources":["https://www.rfc-editor.org/rfc/rfc9421","https://datatracker.ietf.org/doc/draft-ietf-webbotauth-httpsig-protocol/","https://developers.google.com/crawling/docs/crawlers-fetchers/verify-google-requests"]},{"id":"AGT-2","revision":"4b0090a9dfe1","updated":"2026-10-27","name":"Fetch key directories with network limits","level":"Required","risk":"takeover","rule":"This applies when you verify Web Bot Auth signatures or accept Client ID Metadata Documents. Fetch each key directory or client document only over HTTPS, without redirects, from a public address, within a size limit and a timeout.","check":"A test signs four requests. Their `Signature-Agent` points at `https://127.0.0.1`, at a name that resolves to `10.0.0.5`, at a redirect and at a 1 MB answer. The verifier makes no connection to the private addresses, and all four requests are treated as unsigned.","check_type":"http","url":"https://agentwranglers.se/playbook/agents-as-users/identifying-agents/safe-key-directory-fetch","related":["/playbook/agents-as-users/identifying-agents/verify-web-bot-auth","/playbook/agents-as-users/mcp-servers/client-id-metadata-documents","/playbook/application-security/requests-files-and-caches/block-server-side-request-forgery"],"sources":["https://cheatsheetseries.owasp.org/cheatsheets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet.html","https://datatracker.ietf.org/doc/draft-ietf-webbotauth-httpsig-protocol/","https://datatracker.ietf.org/doc/draft-ietf-oauth-client-id-metadata-document/"]},{"id":"AGT-3","revision":"d38cbce306c3","updated":"2026-10-22","name":"Set a policy for each agent operator","level":"Recommended","rule":"Keep one table that says what each verified agent operator may do. It sets the paths, the actions, the rate limit and whether the agent may act for signed-in users.","check":"A unit test loads the policy file and sends one request per row. Each operator gets exactly the paths and limit its row names. Every row has an owner and a review date less than 12 months old.","check_type":"http","url":"https://agentwranglers.se/playbook/agents-as-users/identifying-agents/policy-per-operator","related":["/playbook/agents-as-users/delegated-access-and-consent/separate-identity-claims","/playbook/agents-as-users/quotas-and-pricing/quota-per-grant","/playbook/customer-support/callers-staff-and-tools/agents-contacting-support"],"sources":["https://datatracker.ietf.org/wg/webbotauth/about/"]},{"id":"AGT-4","revision":"b13d3d239b6c","updated":"2026-10-27","name":"Choose a default for unsigned agents","level":"Recommended","rule":"Write down what happens to a request that claims to be an agent but carries no valid signature. Treat it like an anonymous visitor, with the visitor's limits.","check":"Send a request with the user agent of a listed operator and no signature. It gets the same status, limit and content as a plain anonymous browser request.","check_type":"http","url":"https://agentwranglers.se/playbook/agents-as-users/identifying-agents/unsigned-agent-default","related":["/playbook/application-security/limits-and-business-logic/rate-limits"],"sources":[]},{"id":"AGT-5","revision":"0b42777b4343","updated":"2026-10-27","name":"Keep an off switch for each agent operator","level":"Recommended","rule":"Be able to block one agent operator within 5 minutes, without a deploy and without touching other operators.","check":"On staging, block a test operator in the setting. Within 5 minutes its signed requests get 403, another operator's requests still get 200, and the audit log names who blocked it.","check_type":"manual","url":"https://agentwranglers.se/playbook/agents-as-users/identifying-agents/operator-kill-switch","related":["/playbook/agents-as-users/delegated-access-and-consent/revoke-per-agent","/playbook/application-security/ai-features-and-agents/agent-kill-switch"],"sources":[]},{"id":"AGT-6","revision":"b2613215dda1","updated":"2026-10-27","name":"Name each party in its own token claim","level":"Recommended","rule":"Every access token an agent uses for a person names three parties. The person goes in `sub`, the client app in `client_id` or `azp`, and the agent in `act`.","check":"Decode a token issued to a test agent for a test user. It has `sub` for the user, `client_id` for the app and `act.sub` for the agent. A change made with it is logged with all three values.","check_type":"manual","url":"https://agentwranglers.se/playbook/agents-as-users/delegated-access-and-consent/separate-identity-claims","related":["/playbook/agents-as-users/identifying-agents/policy-per-operator","/playbook/agents-as-users/safe-actions/undo-handle","/playbook/customer-support/callers-staff-and-tools/agents-contacting-support"],"sources":["https://www.rfc-editor.org/rfc/rfc8693#section-4.1","https://www.rfc-editor.org/rfc/rfc9068"]},{"id":"AGT-7","revision":"17ff81858e3b","updated":"2026-10-27","name":"Never widen an agent's rights when you exchange its token","level":"Required","risk":"takeover","rule":"When you issue or exchange a token for an agent, its scopes are a subset of the token it came from. Its expiry is no later, and its audience is no wider.","check":"Exchange a token with `bookings:read` for one that asks for `bookings:read bookings:delete` and a longer expiry. The new token has only `bookings:read` and the original expiry, or the exchange is refused with `invalid_scope`.","check_type":"manual","url":"https://agentwranglers.se/playbook/agents-as-users/delegated-access-and-consent/no-permission-amplification","related":["/playbook/accounts/roles-and-permissions/delegated-permissions","/playbook/agents-as-users/delegated-access-and-consent/mcp-token-audience-no-passthrough"],"sources":["https://www.rfc-editor.org/rfc/rfc8693","https://www.rfc-editor.org/rfc/rfc6749#section-5.2"]},{"id":"AGT-8","revision":"099c139368da","updated":"2026-10-27","name":"Name the agent on the consent screen","level":"Recommended","rule":"The consent screen names the agent as well as the app, lists each permission in plain words, and states when the grant ends.","check":"A browser test starts an authorization for a test agent with two scopes. The consent page shows the agent's name, the client host, one plain sentence per scope and an end date. No scope is shown by its raw name only.","check_type":"manual","url":"https://agentwranglers.se/playbook/agents-as-users/delegated-access-and-consent/agent-on-consent-screen","related":["/playbook/agents-as-users/delegated-access-and-consent/revoke-per-agent","/playbook/agents-as-users/delegated-access-and-consent/scope-challenge","/playbook/agents-as-users/mcp-servers/client-id-metadata-documents"],"sources":["https://modelcontextprotocol.io/specification/2026-07-28/basic/security_best_practices","https://www.rfc-editor.org/rfc/rfc9396"]},{"id":"AGT-9","revision":"acb024199d64","updated":"2026-10-27","name":"Let users revoke one agent without the others","level":"Required","risk":"takeover","rule":"Show each person every agent grant on their account and let them revoke one. A revoked grant stops working within the revocation limit of the accounts playbook, and the other grants keep working.","check":"Give two test agents grants for one test user. Revoke the first in the account page. Within 60 seconds its access and refresh tokens are refused, and the second agent's calls still succeed.","check_type":"manual","url":"https://agentwranglers.se/playbook/agents-as-users/delegated-access-and-consent/revoke-per-agent","related":["/playbook/agents-as-users/identifying-agents/operator-kill-switch","/playbook/agents-as-users/delegated-access-and-consent/agent-on-consent-screen","/playbook/accounts/sessions-and-security-activity/end-sessions-on-change","/playbook/agents-as-users/delegated-access-and-consent/short-agent-grants","/playbook/agents-as-users/quotas-and-pricing/budget-warnings"],"sources":["https://www.rfc-editor.org/rfc/rfc7009"]},{"id":"AGT-10","revision":"5328f2b851f3","updated":"2026-10-22","name":"Give agent grants short lives","level":"Recommended","rule":"Agent access tokens last at most 5 minutes. A grant that no agent has used for 90 days ends by itself.","check":"Decode an access token issued to a test agent. `exp` minus `iat` is 300 seconds or less. Use a refresh token twice, and the second use revokes the grant. A test grant left unused for 90 days in a time-shifted test is refused.","check_type":"manual","url":"https://agentwranglers.se/playbook/agents-as-users/delegated-access-and-consent/short-agent-grants","related":["/playbook/agents-as-users/delegated-access-and-consent/revoke-per-agent","/playbook/agents-as-users/delegated-access-and-consent/dpop-bound-agent-tokens"],"sources":["https://www.rfc-editor.org/rfc/rfc9700"]},{"id":"AGT-32","revision":"3f4e3c80bebe","updated":"2026-10-27","name":"Name every missing scope in one challenge","level":"Recommended","applies":["public-api"],"spec_version":"MCP 2026-07-28","review_by":"2027-04-30","rule":"When a token lacks a scope a call needs, answer 403 with `error=\"insufficient_scope\"`, every scope the call needs in `scope`, and the `resource_metadata` address.","check":"Call a tool that needs `files:read files:write` with a token that holds only `files:read`. The answer is 403 with `error=\"insufficient_scope\"`, a `scope` value holding both scopes, and a `resource_metadata` URL that answers 200.","check_type":"command","url":"https://agentwranglers.se/playbook/agents-as-users/delegated-access-and-consent/scope-challenge","related":["/playbook/website/standard-addresses/oauth-authorization-server","/playbook/agents-as-users/delegated-access-and-consent/agent-on-consent-screen","/playbook/agents-as-users/delegated-access-and-consent/mcp-protected-resource-metadata"],"sources":["https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization","https://www.rfc-editor.org/rfc/rfc6750#section-3.1"]},{"id":"AGT-33","revision":"a044ae2a403c","updated":"2026-10-27","name":"Send the issuer with every authorization response","level":"Recommended","applies":["public-api"],"spec_version":"MCP 2026-07-28","review_by":"2027-04-30","rule":"An authorization server that agents sign in through adds `iss` to every authorization response, errors included. Its metadata sets `authorization_response_iss_parameter_supported` to `true`.","check":"Start an authorization with a test client, approve it once and deny it once. Both redirects carry an `iss` equal to the metadata `issuer`, byte for byte. The metadata document holds `\"authorization_response_iss_parameter_supported\": true`.","check_type":"manual","url":"https://agentwranglers.se/playbook/agents-as-users/delegated-access-and-consent/issuer-in-authorization-response","related":["/playbook/agents-as-users/delegated-access-and-consent/mcp-token-audience-no-passthrough"],"sources":["https://www.rfc-editor.org/rfc/rfc9207","https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization"]},{"id":"AGT-37","revision":"68309c570852","updated":"2026-10-27","name":"Publish protected resource metadata for every MCP server that needs sign-in","level":"Required","risk":"takeover","spec_version":"MCP 2026-07-28","review_by":"2027-04-30","rule":"An MCP server that needs sign-in serves an RFC 9728 metadata document. Its `resource` equals the server's own URL, and `authorization_servers` lists at least one server. Every 401 names the document in `WWW-Authenticate`.","check":"An MCP request without a token gets 401 with `resource_metadata` in `WWW-Authenticate`. That URL answers 200 with JSON whose `resource` equals the MCP endpoint's URL and whose `authorization_servers` holds at least one HTTPS URL.","check_type":"http","url":"https://agentwranglers.se/playbook/agents-as-users/delegated-access-and-consent/mcp-protected-resource-metadata","related":["/playbook/website/standard-addresses/oauth-authorization-server","/playbook/agents-as-users/delegated-access-and-consent/scope-challenge"],"sources":["https://www.rfc-editor.org/rfc/rfc9728","https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization/authorization-server-discovery"]},{"id":"AGT-38","revision":"0f5ef848a234","updated":"2026-10-27","name":"Accept only tokens issued for your MCP server and never pass them on","level":"Required","risk":"takeover","spec_version":"MCP 2026-07-28","review_by":"2027-04-30","rule":"Check every access token's signature, issuer, expiry and audience before an MCP request runs. Refuse a token whose `aud` does not name this server with 401. Never forward the client's token to another API.","check":"Send a valid token from your own authorization server issued for `https://other.example.com`. The server answers 401 and runs no tool. A traced test tool that calls an upstream API sends it a different token from the one the client sent.","check_type":"command","url":"https://agentwranglers.se/playbook/agents-as-users/delegated-access-and-consent/mcp-token-audience-no-passthrough","related":["/playbook/agents-as-users/delegated-access-and-consent/no-permission-amplification","/playbook/agents-as-users/delegated-access-and-consent/issuer-in-authorization-response","/playbook/adversarial-testing/ai-agents-and-models/ai-checks","/playbook/agents-as-users/delegated-access-and-consent/resource-indicators"],"sources":["https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization/security-considerations","https://www.rfc-editor.org/rfc/rfc8707","https://www.rfc-editor.org/rfc/rfc9068"]},{"id":"AGT-39","revision":"085b59577d84","updated":"2026-10-27","name":"Bind every token to one MCP server with resource indicators","level":"Required","risk":"takeover","spec_version":"MCP 2026-07-28","review_by":"2027-04-30","rule":"An authorization server that issues tokens for MCP servers reads the `resource` parameter on authorization and token requests. It puts that URL in the token's `aud`, and refuses a resource it does not serve with `invalid_target`.","check":"A token request with `resource=https://mcp.example.com/mcp` returns a token whose `aud` is exactly that URL. A request with `resource=https://evil.example.net` gets `invalid_target` and no token.","check_type":"http","url":"https://agentwranglers.se/playbook/agents-as-users/delegated-access-and-consent/resource-indicators","related":["/playbook/agents-as-users/delegated-access-and-consent/mcp-token-audience-no-passthrough"],"sources":["https://www.rfc-editor.org/rfc/rfc8707","https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization"]},{"id":"AGT-40","revision":"245215c692f1","updated":"2026-10-27","name":"Require PKCE and exact redirect addresses for MCP clients","level":"Required","risk":"takeover","spec_version":"MCP 2026-07-28","review_by":"2027-04-30","rule":"An authorization server for MCP clients refuses an authorization request without a `code_challenge` using `S256`. It lists `S256` in `code_challenge_methods_supported`, and redirects only to a registered `redirect_uri` that matches character for character.","check":"The metadata lists `S256` in `code_challenge_methods_supported`. Three authorization requests are refused, and none redirects with a code. One lacks `code_challenge`, one uses `code_challenge_method=plain`, and one adds `/x` to a registered `redirect_uri`.","check_type":"manual","url":"https://agentwranglers.se/playbook/agents-as-users/delegated-access-and-consent/pkce-and-exact-redirects","related":["/playbook/agents-as-users/mcp-servers/client-id-metadata-documents"],"sources":["https://www.rfc-editor.org/rfc/rfc7636","https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization/security-considerations","https://www.rfc-editor.org/rfc/rfc9700"]},{"id":"AGT-41","revision":"b02dcac4a619","updated":"2026-10-27","name":"Bind long-lived agent tokens to a key with DPoP","level":"Recommended","applies":["public-api"],"rule":"Accept DPoP proofs at your token endpoint and API. A token issued with a proof carries the key's thumbprint in `cnf.jkt`, and every call with it needs a fresh proof signed by that key.","check":"Get a DPoP-bound token for a test agent. A call with the token and no proof gets 401. A proof for another URL gets 401. The same proof sent twice works once.","check_type":"manual","url":"https://agentwranglers.se/playbook/agents-as-users/delegated-access-and-consent/dpop-bound-agent-tokens","related":["/playbook/agents-as-users/delegated-access-and-consent/short-agent-grants"],"sources":["https://www.rfc-editor.org/rfc/rfc9449"]},{"id":"AGT-11","revision":"e9040d743a71","updated":"2026-10-27","name":"Build the MCP server without sessions","level":"Recommended","spec_version":"MCP 2026-07-28","review_by":"2027-04-30","rule":"Answer every MCP request from that request alone. Read the protocol version and client capabilities from its `_meta`, and keep state across calls only behind handles passed as tool arguments.","check":"Run two server instances behind a round-robin proxy. A scripted client calls `server/discover`, creates a handle and uses it in three more calls. Every call succeeds, whichever instance answers. The server never sends an `Mcp-Session-Id` header.","check_type":"http","url":"https://agentwranglers.se/playbook/agents-as-users/mcp-servers/stateless-mcp-server","related":["/playbook/scaling/stateless-app-servers/two-copies-in-staging","/playbook/agents-as-users/mcp-servers/check-handle-owner","/playbook/stack/ai-software/mcp-for-tools"],"sources":["https://modelcontextprotocol.io/specification/2026-07-28/changelog","https://modelcontextprotocol.io/specification/2026-07-28/basic/transports/streamable-http"]},{"id":"AGT-12","revision":"bfda8d028b51","updated":"2026-10-27","name":"Check the caller's rights on every handle","level":"Required","risk":"data","rule":"A handle that one tool returns and another accepts names data, it does not grant access. Check on every call that the caller's token may use it.","check":"User A creates a basket. A call by user B with A's `basket_id` returns the same `isError` result as a made-up handle, and A's basket is unchanged.","check_type":"manual","url":"https://agentwranglers.se/playbook/agents-as-users/mcp-servers/check-handle-owner","related":["/playbook/agents-as-users/mcp-servers/stateless-mcp-server","/playbook/accounts/roles-and-permissions/object-access","/playbook/agents-as-users/mcp-servers/mcp-tasks"],"sources":["https://modelcontextprotocol.io/specification/2026-07-28/server/tools"]},{"id":"AGT-13","revision":"fad3362561a3","updated":"2026-10-27","name":"Register MCP clients with Client ID Metadata Documents","level":"Recommended","spec_version":"MCP 2026-07-28","review_by":"2027-04-30","rule":"Let MCP clients you have never met use an HTTPS address as their client ID. Fetch the metadata document there and check it, instead of open dynamic registration.","check":"Authorization server metadata shows `client_id_metadata_document_supported: true`. A test client whose document has a different `client_id`, and one asking for a `redirect_uri` not in its list, both get `invalid_client` or `invalid_request`. A valid document gets a code.","check_type":"manual","url":"https://agentwranglers.se/playbook/agents-as-users/mcp-servers/client-id-metadata-documents","related":["/playbook/agents-as-users/identifying-agents/safe-key-directory-fetch","/playbook/agents-as-users/delegated-access-and-consent/pkce-and-exact-redirects","/playbook/agents-as-users/delegated-access-and-consent/agent-on-consent-screen","/playbook/agents-as-users/mcp-servers/protocol-version-errors"],"sources":["https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization/client-registration","https://datatracker.ietf.org/doc/draft-ietf-oauth-client-id-metadata-document/"]},{"id":"AGT-14","revision":"d500e1691527","updated":"2026-10-27","name":"Reject MCP requests whose headers disagree with the body","level":"Required","risk":"takeover","spec_version":"MCP 2026-07-28","review_by":"2027-04-30","rule":"Require `MCP-Protocol-Version`, `Mcp-Method` and, on tool calls, resource reads and prompt requests, `Mcp-Name`. Refuse any request whose headers differ from its JSON body, and any request with a foreign `Origin` header.","check":"Send a `tools/call` for `delete_booking` with `Mcp-Name: list_slots`, and another with no `Mcp-Method`. Both get 400 with error code `-32020`, and no booking changes. A request with `Origin: https://evil.example.net` gets 403.","check_type":"http","url":"https://agentwranglers.se/playbook/agents-as-users/mcp-servers/mcp-header-validation","related":["/playbook/application-security/ai-features-and-agents/local-server-origin","/playbook/ai-features/structured-output-and-tools/tool-design"],"sources":["https://modelcontextprotocol.io/specification/2026-07-28/basic/transports/streamable-http"]},{"id":"AGT-15","revision":"b3fe61809d1d","updated":"2026-10-27","name":"Keep the tool list within a token budget","level":"Recommended","spec_version":"MCP 2026-07-28","review_by":"2027-04-30","rule":"Keep the whole `tools/list` answer under 8,000 tokens, and fail the build when it grows past that. Each tool's description says when to use it and when not to.","check":"A test calls `tools/list` with a token that holds every scope and counts the tokens of the JSON answer with a common tokenizer. The count is under 8,000. Every description has a \"Use when\" or \"Do not use\" sentence.","check_type":"manual","url":"https://agentwranglers.se/playbook/agents-as-users/mcp-servers/tool-list-budget","related":["/playbook/ai-features/evals-and-quality/evals-on-tool-change","/playbook/ai-features/structured-output-and-tools/tool-design","/playbook/ai-features/evals-and-quality/tool-choice-cases"],"sources":["https://modelcontextprotocol.io/specification/2026-07-28/server/tools"]},{"id":"AGT-16","revision":"fe558d43f22a","updated":"2026-10-27","name":"Report bad arguments as tool results instead of protocol errors","level":"Recommended","spec_version":"MCP 2026-07-28","review_by":"2027-04-30","rule":"Return bad arguments, missing records and business rule failures as a tool result with `isError: true`. Keep JSON-RPC errors for unknown tools, malformed requests and server faults.","check":"A test calls a tool with a date in the past and gets a result with `isError: true` and a message naming the field. A call to a tool name that does not exist gets a JSON-RPC error with code `-32602`.","check_type":"command","url":"https://agentwranglers.se/playbook/agents-as-users/mcp-servers/tool-errors-as-results","related":["/playbook/ai-features/structured-output-and-tools/tool-errors-for-models"],"sources":["https://modelcontextprotocol.io/specification/2026-07-28/server/tools"]},{"id":"AGT-17","revision":"5289a5a6e32f","updated":"2026-10-27","name":"Send cache hints and a stable order with every list","level":"Recommended","spec_version":"MCP 2026-07-28","review_by":"2027-04-30","rule":"Return list results in the same order while the set is unchanged. Give each cacheable result a `ttlMs`, and a `cacheScope` of `private` whenever it depends on who asks.","check":"Call `tools/list` twice with the same token. The two answers are identical byte for byte, and both carry `ttlMs` and `cacheScope`. A list that changes with the token's scopes says `\"cacheScope\": \"private\"`.","check_type":"manual","url":"https://agentwranglers.se/playbook/agents-as-users/mcp-servers/list-cache-hints","related":["/playbook/application-security/requests-files-and-caches/private-responses-uncached"],"sources":["https://modelcontextprotocol.io/specification/2026-07-28/server/tools","https://modelcontextprotocol.io/specification/2026-07-28/changelog"]},{"id":"AGT-18","revision":"6195fee4e07e","updated":"2026-10-27","name":"Sign the state you hand back for a second round","level":"Recommended","spec_version":"MCP 2026-07-28","review_by":"2027-04-30","rule":"When a tool needs more input, return an `input_required` result. Sign any `requestState` you include, and check the signature on the retry.","check":"A test takes a `requestState` from an `input_required` result and changes one byte, then retries. The server refuses it with a tool error. Using it after 10 minutes, or as another user, is refused the same way.","check_type":"command","url":"https://agentwranglers.se/playbook/agents-as-users/mcp-servers/signed-request-state","related":["/playbook/agents-as-users/safe-actions/confirmation-token","/playbook/agents-as-users/mcp-servers/url-elicitation-for-secrets"],"sources":["https://modelcontextprotocol.io/specification/2026-07-28/basic/patterns/mrtr"]},{"id":"AGT-19","revision":"c398bf3b57a2","updated":"2026-10-27","name":"Run long work as tasks","level":"Optional","spec_version":"MCP 2026-07-28, Tasks extension","review_by":"2027-04-30","rule":"When a tool call takes longer than 30 seconds, return a task handle through the MCP Tasks extension. Return it only to clients that declared the extension.","check":"A client that declares the extension calls a slow tool and gets a `taskId`. It polls `tasks/get` until `completed` and receives the result. A client without the extension gets an ordinary result. Another user's `tasks/get` on that `taskId` is refused.","check_type":"command","url":"https://agentwranglers.se/playbook/agents-as-users/mcp-servers/mcp-tasks","related":["/playbook/agents-as-users/mcp-servers/check-handle-owner","/playbook/api-design/reliability/long-running-jobs"],"sources":["https://modelcontextprotocol.io/extensions/tasks/overview"]},{"id":"AGT-34","revision":"8f20cf9b52ed","updated":"2026-10-27","name":"Ask for secrets only on your own page and check who opens it","level":"Required","risk":"takeover","spec_version":"MCP 2026-07-28","review_by":"2027-04-30","rule":"Never ask for a password, API key, token or card number in a form the agent's client shows. Send a URL-mode request to a page on your own domain, which checks that the signed-in person is the one the request was made for.","check":"A test tool call that needs an API key returns `input_required` with `mode: \"url\"` and a URL on your own host. A search of every form schema the server sends finds no field named like password, key, token or card. Opening the URL while signed in as a second test user shows an error and stores nothing.","check_type":"static","url":"https://agentwranglers.se/playbook/agents-as-users/mcp-servers/url-elicitation-for-secrets","related":["/playbook/agents-as-users/mcp-servers/signed-request-state"],"sources":["https://modelcontextprotocol.io/specification/2026-07-28/client/elicitation"]},{"id":"AGT-35","revision":"dd6df2c78d40","updated":"2026-10-27","name":"Answer an unsupported protocol version with the versions you serve","level":"Recommended","spec_version":"MCP 2026-07-28","review_by":"2027-04-30","rule":"Implement `server/discover`. Answer a request in a protocol version you do not serve with error `-32022` that lists the versions you serve. Answer a legacy `initialize` with an error that names them too.","check":"Send `tools/list` with protocol version `1900-01-01`. The answer is error -32022, and its `data.supported` equals the versions `server/discover` lists. Send a legacy `initialize`. The error message names each supported version.","check_type":"manual","url":"https://agentwranglers.se/playbook/agents-as-users/mcp-servers/protocol-version-errors","related":["/playbook/agents-as-users/mcp-servers/client-id-metadata-documents"],"sources":["https://modelcontextprotocol.io/specification/2026-07-28/basic/versioning","https://modelcontextprotocol.io/specification/2026-07-28/changelog"]},{"id":"AGT-20","revision":"42798289b2a4","updated":"2026-10-27","name":"Offer a dry run for every change","level":"Recommended","rule":"Every tool or API call that changes data accepts `dry_run: true`. It then returns exactly what would change, and changes nothing.","check":"For each tool that changes data, a test calls it with `dry_run: true` and compares the database before and after. Nothing changed, no outbound message was queued, and the answer lists the planned changes.","check_type":"command","url":"https://agentwranglers.se/playbook/agents-as-users/safe-actions/dry-run","related":["/playbook/agents-as-users/ready-for-ai-agents/mcp-and-tool-discovery","/playbook/agents-as-users/quotas-and-pricing/cost-in-every-result"],"sources":[]},{"id":"AGT-21","revision":"cea9a2a8dda3","updated":"2026-10-27","name":"Confirm risky actions with a token bound to the exact request","level":"Required","risk":"money","rule":"An agent call that pays, deletes, sends to many people or cannot be undone first returns a confirmation token. Only a second call with that token, the same arguments and the person's yes carries it out.","check":"A test calls `refund_order` without a token and gets a preview, not a refund. A second call with the token and a changed amount is refused. The same token used twice refunds once. A token older than 10 minutes is refused.","check_type":"manual","url":"https://agentwranglers.se/playbook/agents-as-users/safe-actions/confirmation-token","related":["/playbook/agents-as-users/mcp-servers/signed-request-state","/playbook/agents-as-users/quotas-and-pricing/spend-cap-per-grant","/playbook/ai-features/agents-in-products/agent-approval-irreversible","/playbook/agents-as-users/safe-actions/undo-handle","/playbook/agents-as-users/safe-actions/honest-tool-annotations"],"sources":["https://github.com/GenAI-Security-Project/GenAI-LLM-Top10/blob/main/2026/final/LLM03_ExcessiveAgency.md","https://modelcontextprotocol.io/specification/2026-07-28/server/tools","https://openid.net/specs/openid-client-initiated-backchannel-authentication-core-1_0.html"]},{"id":"AGT-22","revision":"074cdbafe4b0","updated":"2026-10-27","name":"Log every agent change and return an undo handle","level":"Recommended","rule":"Record which agent made each change for which user. Every change an agent makes returns an undo handle that works for at least 24 hours. The person can undo the same change from the app.","check":"A test agent renames a product and calls `undo` with the returned handle. The old name is back, and the history shows both steps with the agent's name. After a person edits the record, the undo reports a conflict and changes nothing.","check_type":"manual","url":"https://agentwranglers.se/playbook/agents-as-users/safe-actions/undo-handle","related":["/playbook/ai-features/agents-in-products/agent-run-trace","/playbook/agents-as-users/delegated-access-and-consent/separate-identity-claims","/playbook/agents-as-users/safe-actions/confirmation-token"],"sources":["https://cheatsheetseries.owasp.org/cheatsheets/AI_Agent_Security_Cheat_Sheet.html","https://github.com/GenAI-Security-Project/GenAI-LLM-Top10/blob/main/2026/final/LLM03_ExcessiveAgency.md"]},{"id":"AGT-23","revision":"6310cb01a00d","updated":"2026-10-27","name":"Run agent calls through the same business rules as the app","level":"Required","risk":"money","rule":"Agent tools call the same service functions as the app's own screens and API. No rule, limit or check exists in only one of them.","check":"A test runs each business rule case through the HTTP API and through the MCP tool. Both give the same outcome. A search of the tool code finds no SQL and no direct database client.","check_type":"http","url":"https://agentwranglers.se/playbook/agents-as-users/safe-actions/same-rules-for-agents","related":["/playbook/ai-features/structured-output-and-tools/tool-design"],"sources":["https://github.com/GenAI-Security-Project/GenAI-LLM-Top10/blob/main/2026/final/LLM03_ExcessiveAgency.md"]},{"id":"AGT-36","revision":"fcfc5c1331e6","updated":"2026-10-27","name":"Label every tool with hints that match what it does","level":"Recommended","spec_version":"MCP 2026-07-28","review_by":"2027-04-30","rule":"Set `readOnlyHint`, `destructiveHint`, `idempotentHint` and `openWorldHint` on every tool. A test proves each value against what the tool does to a test account.","check":"A test calls every tool marked `readOnlyHint: true` on a test account and compares a snapshot of the account before and after, with no difference. Every tool marked `idempotentHint: true` runs twice with the same arguments and makes one change. Every tool that deletes or overwrites data has `destructiveHint: true`.","check_type":"command","url":"https://agentwranglers.se/playbook/agents-as-users/safe-actions/honest-tool-annotations","related":["/playbook/agents-as-users/safe-actions/confirmation-token","/playbook/agents-as-users/ready-for-ai-agents/mcp-and-tool-discovery"],"sources":["https://modelcontextprotocol.io/specification/2026-07-28/schema","https://modelcontextprotocol.io/specification/2026-07-28/server/tools"]},{"id":"AGT-24","revision":"c637bc9b93f5","updated":"2026-10-27","name":"Set quotas per agent grant","level":"Recommended","rule":"Count usage per agent grant, the pair of one user and one agent, as well as per user and per operator. One agent can use at most its share of the user's quota.","check":"A test gives one user two agent grants, each with half the quota. The first agent sends calls until it gets 429. The second agent's next call and the user's own next call both succeed.","check_type":"manual","url":"https://agentwranglers.se/playbook/agents-as-users/quotas-and-pricing/quota-per-grant","related":["/playbook/agents-as-users/identifying-agents/policy-per-operator","/playbook/api-design/reliability/rate-limit-headers","/playbook/scaling/exports-and-fair-share/per-tenant-limits"],"sources":["https://github.com/GenAI-Security-Project/GenAI-LLM-Top10/blob/main/2026/final/LLM06_UnboundedConsumption.md","https://modelcontextprotocol.io/specification/2026-07-28/server/tools"]},{"id":"AGT-78","revision":"5728c13cb11c","updated":"2026-10-27","name":"Limit bulk reads and scraping","level":"Recommended","rule":"Cap how fast one client can page through your data and how much it can read in a day.","check":"Request 200 pages of a list in one minute from one test client. The later requests are slowed or refused, and a normal reader is not affected.","check_type":"http","url":"https://agentwranglers.se/playbook/agents-as-users/quotas-and-pricing/limit-bulk-reads","related":["/playbook/api-design/requests-and-responses/request-body-limit","/playbook/application-security/limits-and-business-logic/rate-limits","/playbook/api-design/lists/page-size-limit","/playbook/agents-as-users/ready-for-ai-agents/robots-for-ai-crawlers"],"sources":["https://api-security.owasp.org/editions/2023/en/0xa4-unrestricted-resource-consumption/","https://github.com/OWASP/www-project-automated-threats-to-web-applications/blob/master/assets/oats/EN/OAT-011_Scraping.md"]},{"id":"AGT-25","revision":"bb31b056b8e6","updated":"2026-10-27","name":"Cap what each agent grant may spend","level":"Required","risk":"money","rule":"When an agent's calls cost the person money, each grant has a spending cap per day and per month that the person sets. A call that would pass the cap is refused before it runs.","check":"A test sets a daily cap of 10.00 on a grant and sends paid calls of 3.00 in parallel. Exactly three succeed, the fourth is refused with the cap named, and the ledger shows 9.00 spent.","check_type":"manual","url":"https://agentwranglers.se/playbook/agents-as-users/quotas-and-pricing/spend-cap-per-grant","related":["/playbook/ai-features/latency-cost-and-fallbacks/cost-per-call","/playbook/ai-features/agents-in-products/agent-run-limits","/playbook/agents-as-users/safe-actions/confirmation-token","/playbook/ai-features/structured-output-and-tools/idempotent-tools","/playbook/agents-as-users/quotas-and-pricing/agent-mandates"],"sources":["https://github.com/GenAI-Security-Project/GenAI-LLM-Top10/blob/main/2026/final/LLM06_UnboundedConsumption.md"]},{"id":"AGT-80","revision":"b4991bec30dd","updated":"2026-10-27","name":"Let agents buy through the same order flow as people","level":"Optional","applies":["payments"],"spec_version":"ACP 2026-04-17","review_by":"2027-04-30","rule":"If you open checkout to AI agents, run their orders through the same order, price, tax and fraud code as the web checkout. Charge their payment tokens through your provider.","check":"A test sends an order through the agent endpoint and one through the web checkout with the same cart. Both produce the same total, tax and order states. A payment token used a second time is refused.","check_type":"http","url":"https://agentwranglers.se/playbook/agents-as-users/quotas-and-pricing/agent-checkout","related":["/playbook/payments/amounts-and-orders/order-snapshot"],"sources":["https://www.agenticcommerce.dev/"]},{"id":"AGT-81","revision":"a67ce4c03fc9","updated":"2026-10-27","name":"Keep the buyer's signed approval with each agent order","level":"Optional","applies":["payments"],"spec_version":"AP2 0.2","review_by":"2027-04-30","rule":"When an agent order comes with a signed mandate, as in AP2, check its signature, merchant, items and amount against the order before you charge. Keep the mandate as dispute evidence.","check":"A test sends an agent order whose mandate allows 500 SEK with a cart of 650 SEK. It is refused before any charge. A matching order is charged, and its mandate is stored with the order.","check_type":"manual","url":"https://agentwranglers.se/playbook/agents-as-users/quotas-and-pricing/agent-mandates","related":["/playbook/agents-as-users/quotas-and-pricing/spend-cap-per-grant","/playbook/payments/refunds-disputes-and-fraud/dispute-evidence","/playbook/ai-features/agents-in-products/agent-approval-irreversible"],"sources":["https://ap2-protocol.org/ap2/specification/"]},{"id":"AGT-26","revision":"d3b08c3ba5a7","updated":"2026-10-27","name":"State the cost of every call before and after it runs","level":"Recommended","rule":"Publish the price of each paid tool or endpoint in a machine-readable form. Return the amount charged and the remaining budget in every paid result.","check":"A test calls each paid tool once. Every result has `charged`, `currency` and `remainingToday`, and `charged` equals the published price. A call that fails with a server error charges 0.","check_type":"command","url":"https://agentwranglers.se/playbook/agents-as-users/quotas-and-pricing/cost-in-every-result","related":["/playbook/agents-as-users/safe-actions/dry-run","/playbook/usage-billing/agentic-payments/http-402-payments","/playbook/payments/amounts-and-orders/money-in-minor-units"],"sources":["https://docs.x402.org/core-concepts/http-402"]},{"id":"AGT-27","revision":"c67ac3568699","updated":"2026-10-22","name":"Warn the person before an agent's budget runs out","level":"Recommended","rule":"Tell the person, not only the agent, when an agent grant reaches 80% of its spending cap or quota, and again when it is reached.","check":"A test spends 80% of a grant's daily cap. Exactly one notice reaches the person's test inbox, naming the agent and the amount. Spending more below 100% sends no second notice.","check_type":"manual","url":"https://agentwranglers.se/playbook/agents-as-users/quotas-and-pricing/budget-warnings","related":["/playbook/agents-as-users/delegated-access-and-consent/revoke-per-agent"],"sources":[]},{"id":"AGT-42","revision":"090aa6b88cfd","updated":"2026-10-27","name":"Make the site easy for AI agents","level":"Recommended","rule":"Make the site easy for AI agents to read and use. Put content in the HTML, and add structured data, Markdown copies, clear crawler rules and discovery files.","check":"Every discovery file answers 200 with the right content type. The HTML of every page, fetched without running scripts, contains its `h1` and main text.","check_type":"manual","url":"https://agentwranglers.se/playbook/agents-as-users/ready-for-ai-agents/agent-readiness-overview","related":["/playbook/api-design/contracts-and-docs/agent-discovery"],"sources":[]},{"id":"AGT-43","revision":"f2168a21c697","updated":"2026-10-27","name":"Give AI tools a site guide","level":"Optional","rule":"Publish `/llms.txt`, a short Markdown guide to your site for AI tools. Give the site's name, a one-line summary, and links to the Markdown version of each important page.","check":"Fetch it. It answers 200 as `text/markdown` or `text/plain`, starts with one `#` heading, is under 24 KB, and every linked page answers 200. The home page links to it inside `<main>`. A test walks the Markdown links from it and reaches every page in the sitemap within four links. Every page it reaches links back to llms.txt.","check_type":"manual","url":"https://agentwranglers.se/playbook/agents-as-users/ready-for-ai-agents/llms-txt","related":["/playbook/ai-assisted-development/context-and-memory/fetchable-docs","/playbook/agents-as-users/ready-for-ai-agents/llms-full-txt","/playbook/agents-as-users/ready-for-ai-agents/token-counts","/playbook/seo/ai-search-answers/ai-features-same-seo","/playbook/documentation/docs-for-coding-agents/agent-readable-docs"],"sources":["https://llmstxt.org/"]},{"id":"AGT-44","revision":"7e439996af7d","updated":"2026-10-27","name":"Offer one file only while it fits an agent's context","level":"Optional","rule":"Offer all content in one Markdown file, such as `/llms-full.txt`, only while it stays under 100,000 tokens. Above that, split it by section behind an index.","check":"A test counts the pages in the file, and every public page appears exactly once. The build fails when the file passes 100,000 tokens. Every file linked from llms.txt states its size in tokens.","check_type":"static","url":"https://agentwranglers.se/playbook/agents-as-users/ready-for-ai-agents/llms-full-txt","related":["/playbook/agents-as-users/ready-for-ai-agents/named-parts-index","/playbook/agents-as-users/ready-for-ai-agents/llms-txt","/playbook/agents-as-users/ready-for-ai-agents/oversized-agent-file"],"sources":[]},{"id":"AGT-45","revision":"49b795b7f572","updated":"2026-10-27","name":"Serving one file too large for any agent to read","level":"Avoid","rule":"Never publish a file for agents to read that is larger than an agent's context window. A full-site dump of millions of tokens is one example.","check":"No file linked from llms.txt, a skill or an agent card passes that limit, apart from JSON labelled for tools.","check_type":"manual","url":"https://agentwranglers.se/playbook/agents-as-users/ready-for-ai-agents/oversized-agent-file","related":["/playbook/agents-as-users/ready-for-ai-agents/llms-full-txt"],"sources":[]},{"id":"AGT-46","revision":"115c488fefb3","updated":"2026-10-27","name":"State the size of every agent file in tokens","level":"Optional","rule":"Every file for agents states its size in tokens, so an agent knows the cost before it fetches the file.","check":"A script fetches every agent file. The stated count is within 10% of a count made with a common tokenizer.","check_type":"command","url":"https://agentwranglers.se/playbook/agents-as-users/ready-for-ai-agents/token-counts","related":["/playbook/agents-as-users/ready-for-ai-agents/llms-txt","/playbook/agents-as-users/ready-for-ai-agents/layer-budgets","/playbook/agents-as-users/ready-for-ai-agents/answer-first-markdown"],"sources":[]},{"id":"AGT-47","revision":"c9f4acdf016e","updated":"2026-10-27","name":"Layer agent content with a budget per layer","level":"Optional","rule":"Arrange agent content in layers, each with a token budget, and link each layer to the next as Markdown.","check":"The build counts every agent file's tokens and fails when one passes its layer's budget.","check_type":"command","url":"https://agentwranglers.se/playbook/agents-as-users/ready-for-ai-agents/layer-budgets","related":["/playbook/agents-as-users/ready-for-ai-agents/token-counts","/playbook/agents-as-users/ready-for-ai-agents/named-parts-index","/playbook/agents-as-users/ready-for-ai-agents/topic-index"],"sources":[]},{"id":"AGT-48","revision":"23e401f21f42","updated":"2026-10-27","name":"Split large agent content into named parts behind an index","level":"Optional","rule":"Split content too large for one read into parts by meaning. An index lists every part with a summary, a size in tokens, an address and a date.","check":"A script reads every index. It states the total, every listed part answers 200, and each stated token count is within 10% of a fresh count. Every agent file on the site appears in at least one index.","check_type":"command","url":"https://agentwranglers.se/playbook/agents-as-users/ready-for-ai-agents/named-parts-index","related":["/playbook/agents-as-users/ready-for-ai-agents/llms-full-txt","/playbook/agents-as-users/ready-for-ai-agents/layer-budgets","/playbook/agents-as-users/ready-for-ai-agents/topic-index","/playbook/api-design/lists/cursor-pagination"],"sources":[]},{"id":"AGT-49","revision":"a87d68dc6b38","updated":"2026-10-27","name":"Offer every page as Markdown","level":"Recommended","rule":"Serve every page as Markdown too. Use its address plus `.md`, and answer requests with `Accept: text/markdown`. Point back to the HTML as the canonical copy.","check":"`curl -sI -H 'Accept: text/markdown' URL` shows `Content-Type: text/markdown`, `Vary: Accept` and the canonical `Link`. A plain browser request to the same URL gets HTML with `Vary: Accept`.","check_type":"http","url":"https://agentwranglers.se/playbook/agents-as-users/ready-for-ai-agents/markdown-source-endpoints","related":["/playbook/agents-as-users/ready-for-ai-agents/markdown-links-to-markdown","/playbook/application-security/browser-security-headers/digest-fields"],"sources":["https://www.rfc-editor.org/rfc/rfc7763","https://www.rfc-editor.org/rfc/rfc9110#field.vary"]},{"id":"AGT-50","revision":"35c341c5422d","updated":"2026-10-27","name":"Link Markdown copies to Markdown copies","level":"Recommended","rule":"Every internal link in a Markdown copy points to the Markdown copy of its target.","check":"A script reads every `.md` page. It fails on any link to your own host whose path does not end in `.md`, apart from images and feeds.","check_type":"command","url":"https://agentwranglers.se/playbook/agents-as-users/ready-for-ai-agents/markdown-links-to-markdown","related":["/playbook/agents-as-users/ready-for-ai-agents/markdown-source-endpoints"],"sources":[]},{"id":"AGT-51","revision":"70b26b2deac2","updated":"2026-10-27","name":"Showing agents a different page than people","level":"Avoid","rule":"Never serve AI crawlers or agents different content from what people see, chosen by user agent, IP address or bot signature.","check":"Fetch each page with a browser user agent and with an AI crawler's user agent, such as GPTBot. The visible text of the two answers is identical.","check_type":"manual","url":"https://agentwranglers.se/playbook/agents-as-users/ready-for-ai-agents/same-content-for-agents","related":["/playbook/seo/search-spam-and-penalties/cloaking","/playbook/agents-as-users/ready-for-ai-agents/robots-for-ai-crawlers","/playbook/agents-as-users/ready-for-ai-agents/machine-readable-formats","/playbook/agents-as-users/ready-for-ai-agents/ask-for-credit"],"sources":["https://developers.google.com/search/docs/essentials/spam-policies#cloaking"]},{"id":"AGT-79","revision":"be25aaf95fce","updated":"2026-10-27","name":"Mark user content that agents read","level":"Recommended","rule":"Keep text written by your users apart from your own content, so other people's agents can tell it is not yours.","check":"Post a review with hidden text that asks agents to reply PENTEST-7a8b. The page source shows it inside the user content block, and no hidden text survives.","check_type":"manual","url":"https://agentwranglers.se/playbook/agents-as-users/ready-for-ai-agents/mark-user-content","related":["/playbook/seo/links-from-other-sites/user-link-attributes","/playbook/seo/ai-search-answers/prompt-injection-content"],"sources":["https://github.com/GenAI-Security-Project/GenAI-LLM-Top10/blob/main/2026/final/LLM01_PromptInjection.md","https://cheatsheetseries.owasp.org/cheatsheets/AI_Agent_Security_Cheat_Sheet.html"]},{"id":"AGT-52","revision":"14ec62a8d661","updated":"2026-10-27","name":"Decide what each AI crawler may do","level":"Recommended","rule":"Decide what each AI crawler may do. Write it in robots.txt as its own user-agent group.","check":"A unit test parses the served robots.txt with a robots parser and asserts allowed or blocked for each named agent. Every named group carries every `Disallow` line of the `*` group. Server logs show no blocked agent fetching blocked paths.","check_type":"manual","url":"https://agentwranglers.se/playbook/agents-as-users/ready-for-ai-agents/robots-for-ai-crawlers","related":["/playbook/agents-as-users/ready-for-ai-agents/same-content-for-agents","/playbook/agents-as-users/quotas-and-pricing/limit-bulk-reads","/playbook/agents-as-users/ready-for-ai-agents/robots-allow-invited-endpoints","/playbook/agents-as-users/ready-for-ai-agents/content-signals","/playbook/seo/search-result-appearance/snippet-controls","/playbook/seo/ai-search-answers/ai-features-same-seo"],"sources":["https://www.rfc-editor.org/rfc/rfc9309","https://developers.google.com/crawling/docs/crawlers-fetchers/google-common-crawlers"]},{"id":"AGT-53","revision":"588069be9dfa","updated":"2026-10-27","name":"Let invited agents reach what you invite them to","level":"Recommended","rule":"robots.txt never blocks an endpoint that llms.txt, a skill or an agent card tells agents to use.","check":"A script collects every endpoint named in llms.txt, the skill files and the agent cards. A robots parser confirms that robots.txt allows each one for ChatGPT-User, Claude-User and Perplexity-User.","check_type":"http","url":"https://agentwranglers.se/playbook/agents-as-users/ready-for-ai-agents/robots-allow-invited-endpoints","related":["/playbook/agents-as-users/ready-for-ai-agents/robots-for-ai-crawlers"],"sources":["https://www.rfc-editor.org/rfc/rfc9309"]},{"id":"AGT-54","revision":"46cf0d7a6804","updated":"2026-10-27","name":"Say how your content may be used","level":"Optional","stack":["cloudflare"],"rule":"Use `Content-Signal` lines in robots.txt to say whether your content may be used for search, AI answers or AI training.","check":"Fetch robots.txt. Every user-agent group has one `Content-Signal` line with your three choices.","check_type":"manual","url":"https://agentwranglers.se/playbook/agents-as-users/ready-for-ai-agents/content-signals","related":["/playbook/agents-as-users/ready-for-ai-agents/robots-for-ai-crawlers","/playbook/agents-as-users/ready-for-ai-agents/tdmrep"],"sources":["https://datatracker.ietf.org/doc/draft-ietf-aipref-vocab/","https://datatracker.ietf.org/doc/draft-ietf-aipref-attach/"]},{"id":"AGT-55","revision":"afd5040706ff","updated":"2026-10-27","name":"State your text-mining choice","level":"Optional","rule":"State whether you reserve text-and-data-mining rights. Use a `tdm-reservation` header and `/.well-known/tdmrep.json`, matching robots.txt.","check":"`curl -sI` on any page shows `tdm-reservation`. The value matches `/.well-known/tdmrep.json` and your robots.txt choices.","check_type":"http","url":"https://agentwranglers.se/playbook/agents-as-users/ready-for-ai-agents/tdmrep","related":["/playbook/agents-as-users/ready-for-ai-agents/content-signals"],"sources":["https://www.w3.org/community/reports/tdmrep/CG-FINAL-tdmrep-20240510/","https://eur-lex.europa.eu/eli/dir/2019/790/oj"]},{"id":"AGT-56","revision":"5358c3927250","updated":"2026-10-27","name":"Sign your bot's requests","level":"Optional","rule":"If you run a crawler or agent, sign its requests with Web Bot Auth. As a site, don't block unsigned bots by default.","check":"A verifier, such as the open-source libraries linked from the draft, accepts your signed request. The key directory answers 200 over HTTPS.","check_type":"http","url":"https://agentwranglers.se/playbook/agents-as-users/ready-for-ai-agents/web-bot-auth","related":["/playbook/agents-as-users/identifying-agents/verify-web-bot-auth"],"sources":["https://www.rfc-editor.org/rfc/rfc9421","https://datatracker.ietf.org/doc/draft-ietf-webbotauth-httpsig-protocol/"]},{"id":"AGT-57","revision":"82934be6cf6e","updated":"2026-10-27","name":"Explain how agents sign up","level":"Optional","applies":["public-api"],"review_by":"2027-04-30","rule":"If agents must register before using your service, explain how in an `auth.md` file at the root of your service.","check":"`/auth.md` answers 200. Every endpoint it names also appears in `/.well-known/oauth-protected-resource`.","check_type":"http","url":"https://agentwranglers.se/playbook/agents-as-users/ready-for-ai-agents/auth-md","related":["/playbook/accounts/roles-and-permissions/delegated-permissions"],"sources":[]},{"id":"AGT-58","revision":"daed383e7427","updated":"2026-10-27","name":"Publish each page's data as a file","level":"Optional","rule":"Publish each page's JSON-LD (structured facts) in the page and as its own file. Then agents can read the facts without parsing HTML.","check":"A test parses the embedded graph and the file for every page. They are identical, and both pass a validator such as validator.schema.org.","check_type":"manual","url":"https://agentwranglers.se/playbook/agents-as-users/ready-for-ai-agents/structured-data-for-agents","related":["/playbook/agents-as-users/ready-for-ai-agents/schemamap"],"sources":["https://www.w3.org/TR/json-ld11/"]},{"id":"AGT-59","revision":"6528f975f55f","updated":"2026-10-27","name":"Offer content machines can read","level":"Recommended","rule":"Offer the site's content as a sitemap, feeds, Markdown and JSON-LD.","check":"A test reads the page list. Every public page appears in the sitemap and has a Markdown copy and JSON-LD in its HTML, and every feed entry is a listed page. Any data file over 100 KB accepts a filter that cuts the answer below 100 KB. Every record has an ID that no other record shares.","check_type":"manual","url":"https://agentwranglers.se/playbook/agents-as-users/ready-for-ai-agents/machine-readable-formats","related":["/playbook/agents-as-users/ready-for-ai-agents/same-content-for-agents","/playbook/seo/site-structure/two-way-related-links"],"sources":["https://www.rfc-editor.org/rfc/rfc4287","https://www.w3.org/TR/json-ld11/"]},{"id":"AGT-60","revision":"27b296772d23","updated":"2026-10-27","name":"Advertise agent files in headers","level":"Optional","rule":"List your discovery files in HTTP `Link` headers on every response. These include llms.txt, the sitemap, feeds, the API catalog and agent cards.","check":"`curl -sI` on any page shows the header, and every target it lists answers 200.","check_type":"http","url":"https://agentwranglers.se/playbook/agents-as-users/ready-for-ai-agents/link-headers","related":["/playbook/website/html-basics/feed-discovery","/playbook/api-design/contracts-and-docs/agent-discovery"],"sources":["https://www.rfc-editor.org/rfc/rfc8288","https://www.iana.org/assignments/link-relations/link-relations.xhtml","https://www.rfc-editor.org/rfc/rfc9727"]},{"id":"AGT-61","revision":"49b13dcbc8ad","updated":"2026-10-27","name":"Publish a server card for your MCP server","level":"Optional","rule":"If you run an MCP server, a way for AI assistants to use your tools, publish a server card that lists it.","check":"The card validates against its JSON schema. An MCP inspector connects and lists every tool. A `tools/list` POST with only `Accept: application/json` gets the tool list.","check_type":"command","url":"https://agentwranglers.se/playbook/agents-as-users/ready-for-ai-agents/mcp-and-tool-discovery","related":["/playbook/agents-as-users/safe-actions/dry-run","/playbook/agents-as-users/safe-actions/honest-tool-annotations","/playbook/stack/ai-software/mcp-for-tools","/playbook/ai-features/agents-in-products/reviewed-agent-tools"],"sources":["https://modelcontextprotocol.io/specification/2026-07-28/server/tools","https://modelcontextprotocol.io/seps/2127"]},{"id":"AGT-62","revision":"233f18365d55","updated":"2026-10-27","name":"Publish an agent card","level":"Optional","rule":"If you run an A2A agent, one that talks to other agents, publish its card at `/.well-known/agent-card.json`. Keep a working endpoint behind it.","check":"Fetch the card and validate it against the A2A schema. Send a JSON-RPC `SendMessage` with `A2A-Version: 1.0`, and get a message or task back.","check_type":"manual","url":"https://agentwranglers.se/playbook/agents-as-users/ready-for-ai-agents/a2a-agent-cards","related":["/playbook/agents-as-users/ready-for-ai-agents/agentic-resource-discovery"],"sources":["https://a2a-protocol.org/latest/specification/"]},{"id":"AGT-63","revision":"25ac6e2b3687","updated":"2026-10-27","name":"List skills agents can learn","level":"Optional","rule":"Publish agent skills as `SKILL.md` files, listed in `/.well-known/agent-skills/index.json`. Give each one a digest, a hash of its exact bytes.","check":"Hash the served file again. The digest matches. The file answers with `Content-Type: text/markdown`.","check_type":"manual","url":"https://agentwranglers.se/playbook/agents-as-users/ready-for-ai-agents/agent-skills-discovery","related":["/playbook/ai-assisted-development/agent-skills/project-skills-in-repo","/playbook/ai-features/agents-in-products/reviewed-agent-tools"],"sources":["https://agentskills.io/specification"]},{"id":"AGT-64","revision":"8b40605d6339","updated":"2026-10-27","name":"List agent endpoints in DNS","level":"Optional","review_by":"2027-04-30","rule":"List your agent endpoints in DNS with SVCB records, as the DNS-AID draft describes. Sign the zone with DNSSEC so answers can be trusted.","check":"A DNS query such as `dig SVCB _index._agents.example.com` returns the record, with the `ad` flag set when DNSSEC validates.","check_type":"command","url":"https://agentwranglers.se/playbook/agents-as-users/ready-for-ai-agents/dns-aid","related":["/playbook/infrastructure/networking-and-dns/dns-as-code"],"sources":["https://datatracker.ietf.org/doc/draft-mozleywilliams-dnsop-dnsaid/","https://www.rfc-editor.org/rfc/rfc9460"]},{"id":"AGT-65","revision":"8fc25e345c10","updated":"2026-10-27","name":"Keep one catalogue of agent tools","level":"Optional","review_by":"2027-04-30","rule":"List your MCP servers, agents and skills in `/.well-known/ai-catalog.json`. Link it from every page.","check":"The catalog parses as JSON. Every entry's URL answers 200 with the media type named in its `type`. Every page has the `rel=\"ai-catalog\"` link.","check_type":"manual","url":"https://agentwranglers.se/playbook/agents-as-users/ready-for-ai-agents/agentic-resource-discovery","related":["/playbook/agents-as-users/ready-for-ai-agents/a2a-agent-cards","/playbook/api-design/contracts-and-docs/agent-discovery"],"sources":[]},{"id":"AGT-66","revision":"b0013f641c50","updated":"2026-10-27","name":"Answer questions from your own pages","level":"Optional","rule":"Offer an endpoint that answers plain-language questions from your own content, with sources.","check":"Ask three questions your pages answer and one they don't. Include one that only a deep page answers, such as a guide. Each answer cites sources that answer 200, and the fourth says it has no answer. Then ask five symptoms phrased as users write them. The page that fixes each one is in the top two results. A question about something the site never covers is marked as a weak match. The same question in the path gets the same answer.","check_type":"manual","url":"https://agentwranglers.se/playbook/agents-as-users/ready-for-ai-agents/nlweb","related":["/playbook/ai-features/retrieval/cite-sources","/playbook/search/language-and-matching/match-plain-questions"],"sources":[]},{"id":"AGT-67","revision":"80c60c16e404","updated":"2026-10-27","name":"Publish a topic index for agents","level":"Optional","rule":"Offer one small file that maps common topics to the pages that answer them.","check":"llms.txt links the file. It validates against its JSON schema, and every address in it answers 200.","check_type":"manual","url":"https://agentwranglers.se/playbook/agents-as-users/ready-for-ai-agents/topic-index","related":["/playbook/agents-as-users/ready-for-ai-agents/named-parts-index","/playbook/agents-as-users/ready-for-ai-agents/layer-budgets","/playbook/search/language-and-matching/item-aliases"],"sources":[]},{"id":"AGT-68","revision":"99f02e381765","updated":"2026-10-27","name":"Give in-browser agents your tools","level":"Optional","rule":"Register the site's tools with the browser through WebMCP. Mark the ones with effects, and report expected failures in the tool's answer.","check":"In a browser with WebMCP turned on, the tools appear with their schemas. Calling each one with a bad input returns a readable failure.","check_type":"manual","url":"https://agentwranglers.se/playbook/agents-as-users/ready-for-ai-agents/webmcp","related":["/playbook/ai-features/agents-in-products/agent-approval-irreversible"],"sources":[]},{"id":"AGT-69","revision":"eaef1d4fc001","updated":"2026-10-27","name":"Package your knowledge for agents","level":"Optional","review_by":"2027-04-30","rule":"Publish the site's knowledge as an Open Knowledge Format bundle. It has an index, one typed Markdown file per concept, and a change log.","check":"Every file linked from the index answers 200, and every concept file has front matter with a non-empty `type`.","check_type":"static","url":"https://agentwranglers.se/playbook/agents-as-users/ready-for-ai-agents/okf-bundle","related":[],"sources":[]},{"id":"AGT-70","revision":"582fe0207e1c","updated":"2026-10-27","name":"Index every page's data file","level":"Optional","review_by":"2027-04-30","rule":"List every JSON-LD file with its types in `/schemamap.xml`. Link it from the page head.","check":"Every listed JSON-LD URL answers 200, and every public page appears in the file.","check_type":"manual","url":"https://agentwranglers.se/playbook/agents-as-users/ready-for-ai-agents/schemamap","related":["/playbook/agents-as-users/ready-for-ai-agents/structured-data-for-agents"],"sources":[]},{"id":"AGT-71","revision":"c4c7b295968f","updated":"2026-10-27","name":"Show one credit line to every reader","level":"Optional","rule":"If others may reuse your content, show one visible credit line on every page, with the same words for people and agents. Repeat it in the Markdown copy.","check":"Fetch any page with a browser user agent and with an AI crawler user agent, and fetch its Markdown copy. All three contain the same credit line with that page's own address, and the line is visible on screen. It contains none of the phrases listed in that rule's check.","check_type":"manual","url":"https://agentwranglers.se/playbook/agents-as-users/ready-for-ai-agents/ask-for-credit","related":["/playbook/agents-as-users/ready-for-ai-agents/same-content-for-agents","/playbook/seo/ai-search-answers/prompt-injection-content"],"sources":[]},{"id":"AGT-72","revision":"28c4608d5acb","updated":"2026-10-27","name":"Answer bursts with 429 instead of a stall","level":"Recommended","rule":"When a client asks too often, answer 429 with `Retry-After` at once. Serve large agent files as files built ahead of time, never built on request.","check":"Send 100 requests in 10 seconds from one client, including the five largest agent files. Every answer arrives within 2 seconds, as 200 or as 429 with `Retry-After`. Another client's requests meanwhile still get 200.","check_type":"manual","url":"https://agentwranglers.se/playbook/agents-as-users/ready-for-ai-agents/burst-answers","related":["/playbook/application-security/limits-and-business-logic/rate-limits","/playbook/api-design/reliability/rate-limit-headers"],"sources":["https://www.rfc-editor.org/rfc/rfc6585#section-4"]},{"id":"AGT-73","revision":"f7c87f550a61","updated":"2026-10-27","name":"Resolve retired IDs everywhere","level":"Recommended","rule":"Every place that accepts an ID follows the map of moved IDs. A lookup of several IDs returns what it found, what moved and what it did not find.","check":"A request for one current, one retired and one unknown ID gets status 200. It returns the current item, the retired one's replacement marked as moved, and the unknown ID in `not_found`.","check_type":"http","url":"https://agentwranglers.se/playbook/agents-as-users/ready-for-ai-agents/resolve-retired-ids","related":["/playbook/ecommerce/catalog-and-prices/never-reuse-skus"],"sources":[]},{"id":"AGT-74","revision":"10f6d9361df3","updated":"2026-10-27","name":"Use one name for each thing in every agent file","level":"Recommended","rule":"Give each section, product or document one name. Use it in the page title, the `h1`, the front matter, llms.txt, the JSON files and the agent cards.","check":"A script reads the name of every section from each of those files and fails on any difference.","check_type":"command","url":"https://agentwranglers.se/playbook/agents-as-users/ready-for-ai-agents/one-name-everywhere","related":["/playbook/website/site-architecture/one-source-many-formats","/playbook/documentation/keeping-docs-current/one-home-per-value","/playbook/seo/ai-search-answers/quotable-pages"],"sources":[]},{"id":"AGT-75","revision":"b9814e69b7d5","updated":"2026-10-27","name":"Keep feeds to recent changes","level":"Recommended","rule":"A site feed carries recent updates only, with a summary and a link per entry, not the full text of every page.","check":"Each feed has at most 50 entries and is under 100 KB.","check_type":"manual","url":"https://agentwranglers.se/playbook/agents-as-users/ready-for-ai-agents/recent-changes-feed","related":["/playbook/website/html-basics/feed-discovery","/playbook/website/html-basics/feed-hygiene"],"sources":[]},{"id":"AGT-76","revision":"f61c8844f2eb","updated":"2026-10-27","name":"Put the answer first in every Markdown copy","level":"Optional","rule":"A Markdown copy opens with front matter and then the main point. It repeats no text that appears on every page.","check":"A script confirms that every Markdown copy has those front matter fields. No paragraph appears in more than 10 copies.","check_type":"command","url":"https://agentwranglers.se/playbook/agents-as-users/ready-for-ai-agents/answer-first-markdown","related":["/playbook/agents-as-users/ready-for-ai-agents/token-counts","/playbook/seo/ai-search-answers/quotable-pages"],"sources":[]},{"id":"AGT-77","revision":"0c66e74d5338","updated":"2026-10-27","name":"Measure how much an agent reads to find an answer","level":"Optional","rule":"Keep a fixed set of questions with their expected pages. Measure the tokens and fetches a fresh agent needs to reach each one.","check":"Each question reaches its expected page in under 5,000 tokens read and three fetches or fewer. CI keeps the numbers for each release.","check_type":"command","url":"https://agentwranglers.se/playbook/agents-as-users/ready-for-ai-agents/agent-path-tests","related":["/playbook/search/language-and-matching/match-plain-questions"],"sources":[]}]}