Skip to main content
Glama

Call the preview from a view

preview_call

Used by a view shown with show_preview. Don't call it yourself.

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": {
      "preview": "<preview>",
      "tool": "<tool>"
    },
    "name": "preview_call"
  }
}

Input Schema

NameRequiredDescriptionDefault
roleNo
toolYes
app_pyNo
previewYes
argumentsNo

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

B3.1/5.0
Behavior3/5

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

Annotations declare a non-read-only, non-destructive, closed-world, non-idempotent operation; the description adds the important fact that this is agent-inaccessible plumbing invoked by a view. That is real context beyond the annotations, but it does not disclose side effects, whether the underlying call mutates state, or what happens on failure.

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

Conciseness5/5

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

Two short sentences with the prohibition front and center and zero filler. For a tool the agent is told not to call, this is the right size; expanding it would add noise.

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

Completeness3/5

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

Since the tool is explicitly off-limits to the agent, the minimal description arguably covers the decision an agent must make. It remains incomplete if the agent ever sees it invoked or needs to reason about the preview flow, because the parameters and effect of the delegated call are undocumented.

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

Parameters1/5

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

Five parameters, two required, with 0% schema description coverage, and the description explains none of them. "tool" and "arguments" clearly describe which tool to run and with what payload, but the agent gets no help on `preview`, `role`, or `app_py` from either the schema or the description.

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

Purpose3/5

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

"Call the preview from a view" plus "Used by a view shown with show_preview" identifies that this routes a tool invocation through a live preview session, and it names the sibling that establishes that session. But it never states what the tool actually does at invocation time or what "preview" and "tool" denote, so the purpose is only implied through context.

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

Usage Guidelines4/5

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

It gives an unambiguous exclusion — "Don't call it yourself" — and ties the tool to the flow started by show_preview, which is exactly the routing guidance an agent needs to avoid misfiring. It stops short of a 5 because it offers no positive condition describing who does call it or what to do instead (e.g. use try_call or show_preview).

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