Skip to main content
Glama

Chat Completions API

call_model_with_org_key

Run a non-streaming model call with your own organization-scoped personal runtime key ID. Omit project_uuid for organization policies, or select a live project in your organization. Normal policy, member budget and inference charges apply. Secrets remain server-side. Use get_trace_with_org_key with the same optional project target when retention is enabled. Requires runtime:call.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "id": "<id>",
      "model": "<model>",
      "messages": "<messages>"
    },
    "name": "call_model_with_org_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesRuntime API key ID in this project; its secret is never returned by this operation
modelYesExact model ID from list_models, or a deployed dynamic/<route-name>.
messagesYesText conversation to send to the model. A single user message is enough to test a model.
max_tokensNoOptional output token limit. Omit to use the model default.
temperatureNoOptional sampling temperature. Omit to use the model default.
project_uuidNoOptional project target for your own organization-scoped personal key. Omit for organization policies.
response_formatNoOptional structured output. Omit or use null for ordinary text. json_object requests JSON; json_schema specifies its shape. The returned message content contains the generated JSON text.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already cover safety (destructiveHint=false, openWorldHint=true), but the description adds genuinely useful behavior: non-streaming execution, that normal policy, member budget and inference charges apply, that secrets stay server-side, and the required runtime:call permission. This is material context an agent could not derive from the annotations alone.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Five short sentences with the capability and scoping constraint front-loaded; the trace follow-up and permission note are secondary but still useful. No filler, though it could be tightened slightly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-parameter inference call with a fully documented schema and no output schema, the description covers billing, permissions, key secrecy, streaming behavior, and tracing. The one gap is that it never describes the response shape beyond the response_format note, but that is minor given the complete schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so every parameter is already documented in the schema. The description's only parameter-related content ('Omit project_uuid for organization policies') restates the project_uuid schema text rather than adding new meaning, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Run a non-streaming model call') plus the distinguishing scope ('your own organization-scoped personal runtime key ID'), which sets it apart from the sibling call_model. It is clear what the tool does, though it never names the sibling it is an alternative to.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete guidance on project targeting ('Omit project_uuid for organization policies, or select a live project') and a prerequisite ('Requires runtime:call'), plus a follow-up route ('Use get_trace_with_org_key ... when retention is enabled'). It does not explain when to pick this over the sibling call_model, so the core selection decision is left implicit.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources