Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial
HomeDocsSearch
Search the documentation

67 pages for loops.

Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.

Client Best Practices Model Context Protocol · in the page docs/2025-03-26/develop/clients/client-best-practices …ct a typed result using a fast model**, for single-shot calls outside loops. Expose a host-brokered `extract(value, ExpectedType)` helper through the same stub-interception path as MCP tool calls so t… Security Best Practices Model Context Protocol · in the page docs/2025-03-26/tutorials/security/security_best_practices …WW-Authenticate`) * Cache recent failures to avoid repeated elevation loops for denied scopes #### Common Mistakes * Publishing all possible scopes in `scopes_supported` * Using wildcard or omnibu… Client Best Practices Model Context Protocol · in the page docs/2025-06-18/develop/clients/client-best-practices …ct a typed result using a fast model**, for single-shot calls outside loops. Expose a host-brokered `extract(value, ExpectedType)` helper through the same stub-interception path as MCP tool calls so t… Security Best Practices Model Context Protocol · in the page docs/2025-06-18/tutorials/security/security_best_practices …WW-Authenticate`) * Cache recent failures to avoid repeated elevation loops for denied scopes #### Common Mistakes * Publishing all possible scopes in `scopes_supported` * Using wildcard or omnibu… Client Best Practices Model Context Protocol · in the page docs/2025-11-25/develop/clients/client-best-practices …ct a typed result using a fast model**, for single-shot calls outside loops. Expose a host-brokered `extract(value, ExpectedType)` helper through the same stub-interception path as MCP tool calls so t… Security Best Practices Model Context Protocol · in the page docs/2025-11-25/tutorials/security/security_best_practices …WW-Authenticate`) * Cache recent failures to avoid repeated elevation loops for denied scopes #### Common Mistakes * Publishing all possible scopes in `scopes_supported` * Using wildcard or omnibu… Build an MCP client Model Context Protocol · in the page docs/2026-07-28/develop/build-client …Block` and `Anthropic::Models::ToolUseBlock` for pattern matching > * Loops up to `MAX_TOOL_TURNS` times, running every tool call in each response > * Executes tool calls via `@mcp_client.call_tool` >… Client Best Practices Model Context Protocol · in the page docs/2026-07-28/develop/clients/client-best-practices …ct a typed result using a fast model**, for single-shot calls outside loops. Expose a host-brokered `extract(value, ExpectedType)` helper through the same stub-interception path as MCP tool calls so t… Security Best Practices Model Context Protocol · in the page docs/2026-07-28/tutorials/security/security_best_practices …WW-Authenticate`) * Cache recent failures to avoid repeated elevation loops for denied scopes When the initial `WWW-Authenticate` challenge carries no `scope` parameter, the [Scope Selection Strate… Build an MCP client Model Context Protocol · in the page docs/draft/develop/build-client …Block` and `Anthropic::Models::ToolUseBlock` for pattern matching > * Loops up to `MAX_TOOL_TURNS` times, running every tool call in each response > * Executes tool calls via `@mcp_client.call_tool` >… Client Best Practices Model Context Protocol · in the page docs/draft/develop/clients/client-best-practices …ct a typed result using a fast model**, for single-shot calls outside loops. Expose a host-brokered `extract(value, ExpectedType)` helper through the same stub-interception path as MCP tool calls so t… Security Best Practices Model Context Protocol · in the page docs/draft/tutorials/security/security_best_practices …WW-Authenticate`) * Cache recent failures to avoid repeated elevation loops for denied scopes When the initial `WWW-Authenticate` challenge carries no `scope` parameter, the [Scope Selection Strate… SEP-1577: Sampling With Tools Model Context Protocol · in the page seps/1577--sampling-with-tools …under a capability). This allows MCP servers to run their own agentic loops using the client's tokens (still under the user supervision), and reduces the complexity of client implementations (context… SEP-3415: Events Extension Model Context Protocol · in the page seps/3415-events-extension …d to the lifetime of the `events/stream` request. When it closes, all loops and listeners stop. **Webhook mode.** The SDK uses the same two patterns, poll-driven or direct emit, but POSTs events to t… Sampling Model Context Protocol · in the page specification/2025-11-25/client/sampling …types) 7. Both parties **SHOULD** implement iteration limits for tool loops This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform. Sampling Model Context Protocol · in the page specification/2026-07-28/client/sampling …types) 7. Both parties **SHOULD** implement iteration limits for tool loops This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform. Sampling Model Context Protocol · in the page specification/draft/client/sampling …types) 7. Both parties **SHOULD** implement iteration limits for tool loops This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.
Feedback