Skip to main content
Glama

Get starter files to add a persona to an app

anam_scaffold
Read-onlyIdempotent

Starter files that put a persona in the user’s app, to write yourself: a server route that swaps the ANAM_API_KEY environment variable for a short-lived session token, a page using @anam-ai/js-sdk, an env file without the key, and install and run commands. express and fastapi come with a Vite page.

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": {
      "stack": "<stack>",
      "personaId": "<personaId>"
    },
    "name": "anam_scaffold"
  }
}

Input Schema

NameRequiredDescriptionDefault
stackYes
personaIdYesThe persona to talk to.

Output Schema

NameRequiredDescriptionDefault
docsNo
openNo
filesYes
labelNo
stackNo
envVarsNo
personaNo
commandsNo
resultTrimmedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered; the description instead adds real content value by enumerating exactly which files come back and confirming the env file omits the secret key. The token-swap detail (exchanging a long-lived API key for a short-lived session token) is a meaningful behavioral fact an agent would not get from the schema. 'To write yourself' usefully signals that files are returned as text for the caller to place, not written to disk, though it states this obliquely.

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?

The file inventory is front-loaded and every clause carries distinct information — no filler sentences and no marketing language. The cost is that the core sentence is long and opens with a fragment ('Starter files that...'), so the actual action remains buried mid-read. It could be tightened into an explicit verb-first statement without losing content.

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

Completeness5/5

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

For a two-parameter, annotation-covered, output-schema-backed scaffold tool, the description supplies what the structured fields cannot: the exact artifact list, the secret-handling behavior, and the stack-specific Vite note. Return format need not be explained because an output schema exists. Nothing further is required for an agent to call it correctly.

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 coverage is 50%: `personaId` is documented in-schema, while `stack` is an undescribed three-value enum. The description partially compensates by noting that `express` and `fastapi` ship a Vite page, which hints at how `nextjs` differs, but it never explains what `personaId` selects or whether any stack yields different file sets beyond the page. Baseline 3 is appropriate given the schema does most of the work.

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?

The description names the concrete artifact set: a server route that swaps `ANAM_API_KEY` for a short-lived session token, a page using `@anam-ai/js-sdk`, an env file without the key, and install/run commands. That is far more specific than the sibling resource-getters (`anam_persona_get`, `anam_llm_list`), so an agent can tell it produces integration scaffolding rather than retrieving a resource. It stops short of a 5 because no verb states the action (generate/return) — the description opens with a noun phrase, leaving the operation type to be inferred.

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?

Usage is only implied by the phrase 'put a persona in the user's app,' which tells an agent the broad situation but never says when to pick this over `anam_integration_guide`, `anam_docs_read`, or `anam_persona_widget_get`. There are no exclusions or prerequisites stated (e.g. requiring an existing API key or an existing app). The one piece of real routing signal is the note that `express` and `fastapi` include a Vite page, which only helps after a stack is already chosen.

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