---
title: "Anthropic (Claude)"
description: "Create a bounded non-streaming Claude message, count input tokens and inspect accessible models using a customer Anthropic API key. Native content blocks, tool definitions and usage data are preserved. This four-command"
---

> Documentation Index
> Fetch the complete documentation index at: https://help.tooluse.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Anthropic (Claude)

<p>Create a bounded non-streaming Claude message, count input tokens and inspect accessible models using a customer Anthropic API key. Native content blocks, tool definitions and usage data are preserved. This four-command REST subset excludes event streams, prompt-management beta APIs, files and asynchronous batches. Model availability and billing depend on the customer account.</p>

<details data-command-index><summary>What you can do (4)</summary>
<h2>What you can do</h2>
<p>Available commands: 4 (2 read, 2 write). Enable only the commands your application needs.</p>
<div class="nb-table-scroll"><table>
<thead>
<tr>
<th>Command</th>
<th>Effect</th>
</tr>
</thead>
<tbody><tr>
<td><a href="https://help.tooluse.net/integrations/anthropic#command-anthropic-messages-create">Create one non-streaming message with a token ceiling</a> — <code>anthropic.messages.create</code></td>
<td>Write</td>
</tr>
<tr>
<td><a href="https://help.tooluse.net/integrations/anthropic#command-anthropic-messages-count-tokens">Count input tokens without generating an answer</a> — <code>anthropic.messages.count-tokens</code></td>
<td>Write</td>
</tr>
<tr>
<td><a href="https://help.tooluse.net/integrations/anthropic#command-anthropic-models-list">List one page of accessible models</a> — <code>anthropic.models.list</code></td>
<td>Read</td>
</tr>
<tr>
<td><a href="https://help.tooluse.net/integrations/anthropic#command-anthropic-models-get">Read one model description</a> — <code>anthropic.models.get</code></td>
<td>Read</td>
</tr>
</tbody></table>
</div>
</details>
<h2>Connect and use</h2>

<p><a href="https://www.tooluse.net/tools/integrations/anthropic">Connect and use</a></p>
<p>Open the integration&#39;s connection form to check the available credential source. The source has not been resolved for this documentation export. The instructions below apply when using your own provider account.</p>
<h2>Get your provider credentials</h2>
<p>Follow these steps for Anthropic (Claude), then enter the issued values in the connection form below.</p>
<ol>
<li>Open the Claude Console, select the intended workspace and create an API key in Settings → API keys. Configure workspace spend limits and only grant the required role. A Claude chat subscription alone does not provide API credits. Paste the key into this connection’s Anthropic (Claude) API token field. Start with models.list or messages.count-tokens; messages.create requires a model, messages and an explicit max_tokens ceiling. Streaming is disabled. Create a separate scoped Tooluse.net API key for your client; never expose the Anthropic key in the MCP URL.</li>
</ol>
<p><a href="https://platform.claude.com/settings/keys">Official credential setup</a></p>
<h2>Where to enter credentials</h2>
<p>In the integration page, sign in, choose your workspace and open Connect. If a <strong>Credentials</strong> choice is shown, select <strong>Use my credentials</strong>. Fill the following connection fields and save. Provider credentials belong in this form, never in an MCP configuration or tool input.</p>
<div class="nb-table-scroll"><table>
<thead>
<tr>
<th>Connection field</th>
<th>Requirement</th>
</tr>
</thead>
<tbody><tr>
<td>Anthropic (Claude) API token</td>
<td>Required</td>
</tr>
</tbody></table>
</div><p>Open API keys and create a Tooluse.net key for the enabled commands.</p>
<p>Set TOOLUSE_API_KEY in your client and use the shared MCP configuration.</p>
<p><a href="https://help.tooluse.net/clients">Configure Claude Code, Codex or Cursor once</a></p>

<h2>Permissions and results</h2>

<p>If you have more than one workspace, check the selected workspace in the connection or API-key dialog before saving. Roles, enabled commands, expiry and revocation use Tooluse.net&#39;s existing permissions. Disabling a connection or revoking a key immediately prevents new calls.</p>

<p>Send one Claude tool_use block per request. Keep the same Idempotency-Key when retrying the same request; use a new key for a new call. The response includes the shared Tooluse.net receipt and Claude tool_result. Check both HTTP status and the returned tool result before treating a call as successful.</p>

<p>Your connection&#39;s daily allowance and key permissions also apply. Adding a connection does not make a provider request.</p>

<p>Calls return the shared execution receipt and a Claude tool_result. Provider output varies by operation; consult the provider documentation for its response fields. Unconfirmed calls should be checked before retrying.</p>

<h2>Call from your client</h2>

<p>Use the shared MCP configuration. Refresh your client&#39;s tool list after saving the connection or changing key permissions, then call the returned tool name with the example input below.</p>

<p><a href="https://help.tooluse.net/clients">Configure Claude Code, Codex or Cursor once</a></p>

<h2>Discover your enabled tools</h2>

<p>List permitted tools in Claude format. Read every page using page and size (maximum 100) until all results have been received. Use the returned name, not a catalog capability identifier, in the tool_use block.</p>

<pre><code class="language-bash">curl 'https://api.tooluse.net/v1/tools' \
  -H "Authorization: Bearer $TOOLUSE_API_KEY"
</code></pre>

<p>Find this command in the tool list permitted by your key. Replace svc_FROM_YOUR_TOOL_LIST with its returned name. Use a new Idempotency-Key for each new call and retain it when retrying that same call.</p>

<h2>HTTP call</h2>

<pre><code class="language-bash">curl 'https://api.tooluse.net/v1/tool-calls' \
  -H "Authorization: Bearer $TOOLUSE_API_KEY" \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: replace-with-a-new-call-id' \
  --data '{
  "type": "tool_use",
  "id": "toolu_example",
  "name": "svc_FROM_YOUR_TOOL_LIST",
  "input": {}
}'
</code></pre>

<p>Send one Claude tool_use block per request. Keep the same Idempotency-Key when retrying the same request; use a new key for a new call. The response includes the shared Tooluse.net receipt and Claude tool_result. Check both HTTP status and the returned tool result before treating a call as successful.</p>

<h2>Commands</h2>

<details id="command-anthropic-messages-create">
<summary><span>Create one non-streaming message with a token ceiling — <code>anthropic.<wbr>messages.<wbr>create</code></span></summary>
<p>Run <strong>Create one non-streaming message with a token ceiling</strong> with Anthropic (Claude). This command can change provider data. Review the target and input before invoking it.</p>

<p>This operation can change provider data. Review the input before allowing an agent to call it.</p>

<p><a href="https://www.tooluse.net/tools/integrations/anthropic?command=anthropic.messages.create">Connect and use</a></p>

<p><strong>Parameters</strong></p>

<p>Requiredness is local to the containing object. A required child is required only when its parent object or array item is provided. Alternative schemas are identified in the Constraints column; the linked full JSON Schema is authoritative.</p>

<div class="nb-table-scroll"><table>
<thead>
<tr>
<th>Parameter</th>
<th>Type</th>
<th>Required in parent</th>
<th>Description</th>
<th>Constraints</th>
</tr>
</thead>
<tbody><tr>
<td><code>body</code></td>
<td>object</td>
<td>Required</td>
<td></td>
<td><code>additionalProperties: false</code></td>
</tr>
<tr>
<td><code>body.model</code></td>
<td>string</td>
<td>Required</td>
<td></td>
<td><code>minLength: 1</code></td>
</tr>
<tr>
<td><code>body.messages</code></td>
<td>array</td>
<td>Required</td>
<td></td>
<td><code>minItems: 1</code></td>
</tr>
<tr>
<td><code>body.messages[]</code></td>
<td>object</td>
<td>Optional</td>
<td></td>
<td><code>additionalProperties: false</code></td>
</tr>
<tr>
<td><code>body.messages[].role</code></td>
<td>string</td>
<td>Required</td>
<td></td>
<td><code>enum: [&quot;user&quot;,&quot;assistant&quot;]</code></td>
</tr>
<tr>
<td><code>body.messages[].content</code></td>
<td>—</td>
<td>Required</td>
<td></td>
<td></td>
</tr>
<tr>
<td><code>body.messages[].content</code></td>
<td>string</td>
<td>Required</td>
<td></td>
<td><code>oneOf[1]</code></td>
</tr>
<tr>
<td><code>body.messages[].content</code></td>
<td>array</td>
<td>Required</td>
<td></td>
<td><code>oneOf[2]; minItems: 1</code></td>
</tr>
<tr>
<td><code>body.messages[].content[]</code></td>
<td>object</td>
<td>Optional</td>
<td></td>
<td><code>oneOf[2]; additionalProperties: true</code></td>
</tr>
<tr>
<td><code>body.messages[].content[].type</code></td>
<td>string</td>
<td>Required</td>
<td></td>
<td><code>oneOf[2]; minLength: 1</code></td>
</tr>
<tr>
<td><code>body.system</code></td>
<td>—</td>
<td>Optional</td>
<td></td>
<td></td>
</tr>
<tr>
<td><code>body.system</code></td>
<td>string</td>
<td>Optional</td>
<td></td>
<td><code>oneOf[1]</code></td>
</tr>
<tr>
<td><code>body.system</code></td>
<td>array</td>
<td>Optional</td>
<td></td>
<td><code>oneOf[2]</code></td>
</tr>
<tr>
<td><code>body.system[]</code></td>
<td>object</td>
<td>Optional</td>
<td></td>
<td><code>oneOf[2]; additionalProperties: true</code></td>
</tr>
<tr>
<td><code>body.system[].type</code></td>
<td>string</td>
<td>Required</td>
<td></td>
<td><code>oneOf[2]; minLength: 1</code></td>
</tr>
<tr>
<td><code>body.tools</code></td>
<td>array</td>
<td>Optional</td>
<td></td>
<td></td>
</tr>
<tr>
<td><code>body.tools[]</code></td>
<td>object</td>
<td>Optional</td>
<td></td>
<td><code>additionalProperties: true</code></td>
</tr>
<tr>
<td><code>body.tools[].name</code></td>
<td>string</td>
<td>Required</td>
<td></td>
<td><code>minLength: 1</code></td>
</tr>
<tr>
<td><code>body.tools[].description</code></td>
<td>string</td>
<td>Optional</td>
<td></td>
<td></td>
</tr>
<tr>
<td><code>body.tools[].input_schema</code></td>
<td>object</td>
<td>Required</td>
<td></td>
<td><code>additionalProperties: true</code></td>
</tr>
<tr>
<td><code>body.tool_choice</code></td>
<td>object</td>
<td>Optional</td>
<td></td>
<td><code>additionalProperties: false</code></td>
</tr>
<tr>
<td><code>body.tool_choice.type</code></td>
<td>string</td>
<td>Required</td>
<td></td>
<td><code>enum: [&quot;auto&quot;,&quot;any&quot;,&quot;tool&quot;,&quot;none&quot;]</code></td>
</tr>
<tr>
<td><code>body.tool_choice.name</code></td>
<td>string</td>
<td>Optional</td>
<td></td>
<td></td>
</tr>
<tr>
<td><code>body.tool_choice.disable_parallel_tool_use</code></td>
<td>boolean</td>
<td>Optional</td>
<td></td>
<td></td>
</tr>
<tr>
<td><code>body.max_tokens</code></td>
<td>integer</td>
<td>Required</td>
<td></td>
<td><code>minimum: 1; maximum: 64000</code></td>
</tr>
<tr>
<td><code>body.stream</code></td>
<td>boolean</td>
<td>Optional</td>
<td></td>
<td><code>enum: [false]; default: false</code></td>
</tr>
<tr>
<td><code>body.temperature</code></td>
<td>number</td>
<td>Optional</td>
<td></td>
<td><code>minimum: 0; maximum: 1</code></td>
</tr>
<tr>
<td><code>body.top_p</code></td>
<td>number</td>
<td>Optional</td>
<td></td>
<td><code>minimum: 0; maximum: 1</code></td>
</tr>
<tr>
<td><code>body.top_k</code></td>
<td>integer</td>
<td>Optional</td>
<td></td>
<td><code>minimum: 0</code></td>
</tr>
<tr>
<td><code>body.stop_sequences</code></td>
<td>array</td>
<td>Optional</td>
<td></td>
<td></td>
</tr>
<tr>
<td><code>body.stop_sequences[]</code></td>
<td>string</td>
<td>Optional</td>
<td></td>
<td></td>
</tr>
<tr>
<td><code>body.metadata</code></td>
<td>object</td>
<td>Optional</td>
<td></td>
<td><code>additionalProperties: false</code></td>
</tr>
<tr>
<td><code>body.metadata.user_id</code></td>
<td>string</td>
<td>Optional</td>
<td></td>
<td><code>maxLength: 256</code></td>
</tr>
</tbody></table>
</div>
<p><strong>Full JSON Schema</strong></p>

<p><a href="https://api.tooluse.net/v1/integrations/anthropic/commands/anthropic.messages.create">Full JSON Schema</a></p>

<p><strong>Example input</strong></p>

<pre><code class="language-json">{
  "body": {
    "model": "claude-sonnet-4-5",
    "max_tokens": 32,
    "messages": [
      {
        "role": "user",
        "content": "Say hello briefly."
      }
    ],
    "stream": false
  }
}
</code></pre>

<p>At most 1 provider requests per invocation; timeout: 30 seconds.</p>

</details>
<details id="command-anthropic-messages-count-tokens">
<summary><span>Count input tokens without generating an answer — <code>anthropic.<wbr>messages.<wbr>count-<wbr>tokens</code></span></summary>
<p>Run <strong>Count input tokens without generating an answer</strong> with Anthropic (Claude). This command can change provider data. Review the target and input before invoking it.</p>

<p>This operation can change provider data. Review the input before allowing an agent to call it.</p>

<p><a href="https://www.tooluse.net/tools/integrations/anthropic?command=anthropic.messages.count-tokens">Connect and use</a></p>

<p><strong>Parameters</strong></p>

<p>Requiredness is local to the containing object. A required child is required only when its parent object or array item is provided. Alternative schemas are identified in the Constraints column; the linked full JSON Schema is authoritative.</p>

<div class="nb-table-scroll"><table>
<thead>
<tr>
<th>Parameter</th>
<th>Type</th>
<th>Required in parent</th>
<th>Description</th>
<th>Constraints</th>
</tr>
</thead>
<tbody><tr>
<td><code>body</code></td>
<td>object</td>
<td>Required</td>
<td></td>
<td><code>additionalProperties: false</code></td>
</tr>
<tr>
<td><code>body.model</code></td>
<td>string</td>
<td>Required</td>
<td></td>
<td><code>minLength: 1</code></td>
</tr>
<tr>
<td><code>body.messages</code></td>
<td>array</td>
<td>Required</td>
<td></td>
<td><code>minItems: 1</code></td>
</tr>
<tr>
<td><code>body.messages[]</code></td>
<td>object</td>
<td>Optional</td>
<td></td>
<td><code>additionalProperties: false</code></td>
</tr>
<tr>
<td><code>body.messages[].role</code></td>
<td>string</td>
<td>Required</td>
<td></td>
<td><code>enum: [&quot;user&quot;,&quot;assistant&quot;]</code></td>
</tr>
<tr>
<td><code>body.messages[].content</code></td>
<td>—</td>
<td>Required</td>
<td></td>
<td></td>
</tr>
<tr>
<td><code>body.messages[].content</code></td>
<td>string</td>
<td>Required</td>
<td></td>
<td><code>oneOf[1]</code></td>
</tr>
<tr>
<td><code>body.messages[].content</code></td>
<td>array</td>
<td>Required</td>
<td></td>
<td><code>oneOf[2]; minItems: 1</code></td>
</tr>
<tr>
<td><code>body.messages[].content[]</code></td>
<td>object</td>
<td>Optional</td>
<td></td>
<td><code>oneOf[2]; additionalProperties: true</code></td>
</tr>
<tr>
<td><code>body.messages[].content[].type</code></td>
<td>string</td>
<td>Required</td>
<td></td>
<td><code>oneOf[2]; minLength: 1</code></td>
</tr>
<tr>
<td><code>body.system</code></td>
<td>—</td>
<td>Optional</td>
<td></td>
<td></td>
</tr>
<tr>
<td><code>body.system</code></td>
<td>string</td>
<td>Optional</td>
<td></td>
<td><code>oneOf[1]</code></td>
</tr>
<tr>
<td><code>body.system</code></td>
<td>array</td>
<td>Optional</td>
<td></td>
<td><code>oneOf[2]</code></td>
</tr>
<tr>
<td><code>body.system[]</code></td>
<td>object</td>
<td>Optional</td>
<td></td>
<td><code>oneOf[2]; additionalProperties: true</code></td>
</tr>
<tr>
<td><code>body.system[].type</code></td>
<td>string</td>
<td>Required</td>
<td></td>
<td><code>oneOf[2]; minLength: 1</code></td>
</tr>
<tr>
<td><code>body.tools</code></td>
<td>array</td>
<td>Optional</td>
<td></td>
<td></td>
</tr>
<tr>
<td><code>body.tools[]</code></td>
<td>object</td>
<td>Optional</td>
<td></td>
<td><code>additionalProperties: true</code></td>
</tr>
<tr>
<td><code>body.tools[].name</code></td>
<td>string</td>
<td>Required</td>
<td></td>
<td><code>minLength: 1</code></td>
</tr>
<tr>
<td><code>body.tools[].description</code></td>
<td>string</td>
<td>Optional</td>
<td></td>
<td></td>
</tr>
<tr>
<td><code>body.tools[].input_schema</code></td>
<td>object</td>
<td>Required</td>
<td></td>
<td><code>additionalProperties: true</code></td>
</tr>
<tr>
<td><code>body.tool_choice</code></td>
<td>object</td>
<td>Optional</td>
<td></td>
<td><code>additionalProperties: false</code></td>
</tr>
<tr>
<td><code>body.tool_choice.type</code></td>
<td>string</td>
<td>Required</td>
<td></td>
<td><code>enum: [&quot;auto&quot;,&quot;any&quot;,&quot;tool&quot;,&quot;none&quot;]</code></td>
</tr>
<tr>
<td><code>body.tool_choice.name</code></td>
<td>string</td>
<td>Optional</td>
<td></td>
<td></td>
</tr>
<tr>
<td><code>body.tool_choice.disable_parallel_tool_use</code></td>
<td>boolean</td>
<td>Optional</td>
<td></td>
<td></td>
</tr>
</tbody></table>
</div>
<p><strong>Full JSON Schema</strong></p>

<p><a href="https://api.tooluse.net/v1/integrations/anthropic/commands/anthropic.messages.count-tokens">Full JSON Schema</a></p>

<p><strong>Example input</strong></p>

<pre><code class="language-json">{
  "body": {
    "model": "claude-sonnet-4-5",
    "messages": [
      {
        "role": "user",
        "content": "Count this input."
      }
    ]
  }
}
</code></pre>

<p>At most 1 provider requests per invocation; timeout: 30 seconds.</p>

</details>
<details id="command-anthropic-models-list">
<summary><span>List one page of accessible models — <code>anthropic.<wbr>models.<wbr>list</code></span></summary>
<p>Run <strong>List one page of accessible models</strong> with Anthropic (Claude). This is a read command; it does not grant access beyond the connected account&#39;s permissions.</p>

<p>This is a read operation. Provider rate limits and data access rules still apply.</p>

<p><a href="https://www.tooluse.net/tools/integrations/anthropic?command=anthropic.models.list">Connect and use</a></p>

<p><strong>Parameters</strong></p>

<p>Requiredness is local to the containing object. A required child is required only when its parent object or array item is provided. Alternative schemas are identified in the Constraints column; the linked full JSON Schema is authoritative.</p>

<div class="nb-table-scroll"><table>
<thead>
<tr>
<th>Parameter</th>
<th>Type</th>
<th>Required in parent</th>
<th>Description</th>
<th>Constraints</th>
</tr>
</thead>
<tbody><tr>
<td><code>query</code></td>
<td>object</td>
<td>Optional</td>
<td></td>
<td><code>additionalProperties: false</code></td>
</tr>
<tr>
<td><code>query.before_id</code></td>
<td>string</td>
<td>Optional</td>
<td></td>
<td></td>
</tr>
<tr>
<td><code>query.after_id</code></td>
<td>string</td>
<td>Optional</td>
<td></td>
<td></td>
</tr>
<tr>
<td><code>query.limit</code></td>
<td>integer</td>
<td>Optional</td>
<td></td>
<td><code>minimum: 1; maximum: 1000</code></td>
</tr>
</tbody></table>
</div>
<p><strong>Full JSON Schema</strong></p>

<p><a href="https://api.tooluse.net/v1/integrations/anthropic/commands/anthropic.models.list">Full JSON Schema</a></p>

<p><strong>Example input</strong></p>

<pre><code class="language-json">{}
</code></pre>

<p>At most 1 provider requests per invocation; timeout: 30 seconds.</p>

</details>
<details id="command-anthropic-models-get">
<summary><span>Read one model description — <code>anthropic.<wbr>models.<wbr>get</code></span></summary>
<p>Run <strong>Read one model description</strong> with Anthropic (Claude). This is a read command; it does not grant access beyond the connected account&#39;s permissions.</p>

<p>This is a read operation. Provider rate limits and data access rules still apply.</p>

<p><a href="https://www.tooluse.net/tools/integrations/anthropic?command=anthropic.models.get">Connect and use</a></p>

<p><strong>Parameters</strong></p>

<p>Requiredness is local to the containing object. A required child is required only when its parent object or array item is provided. Alternative schemas are identified in the Constraints column; the linked full JSON Schema is authoritative.</p>

<div class="nb-table-scroll"><table>
<thead>
<tr>
<th>Parameter</th>
<th>Type</th>
<th>Required in parent</th>
<th>Description</th>
<th>Constraints</th>
</tr>
</thead>
<tbody><tr>
<td><code>path</code></td>
<td>object</td>
<td>Required</td>
<td></td>
<td><code>additionalProperties: false</code></td>
</tr>
<tr>
<td><code>path.modelId</code></td>
<td>string</td>
<td>Required</td>
<td></td>
<td><code>minLength: 1</code></td>
</tr>
</tbody></table>
</div>
<p><strong>Full JSON Schema</strong></p>

<p><a href="https://api.tooluse.net/v1/integrations/anthropic/commands/anthropic.models.get">Full JSON Schema</a></p>

<p><strong>Example input</strong></p>

<pre><code class="language-json">{
  "path": {
    "modelId": "example"
  }
}
</code></pre>

<p>At most 1 provider requests per invocation; timeout: 30 seconds.</p>

</details>
<h2>Errors</h2>

<p>Check the key&#39;s expiry, revocation, workspace and allowed operations.</p>

<p>Reuse the same idempotency key only for the same request.</p>

<p>The connection or provider limit has been reached. Check the receipt before retrying.</p>

<h2>Test the connection</h2>

<p>Open the integration&#39;s commands below to inspect parameters and examples. Start with a read command for an account or resource you can access. Refresh your client&#39;s tool list, use the returned tool name, and check the execution result and usage. Provider charges and permissions still apply. Never test a write against production data without reviewing it.</p>

<p><a href="https://platform.claude.com/docs/en/api/messages/create">Official provider documentation</a></p>

Source: https://help.tooluse.net/integrations/anthropic/index.mdx
