Skip to main content
Glama

Ask the owner to let a website use DCAST

ask_site_access

Ask the account owner (one Allow click on DCAST's approval page) to let a website you built call DCAST from its own server. First, in the website's project folder, run: curl -fsSL https://api.dcast.pro/api/v1/agent/site-connect.mjs -o .dcast-site-connect.mjs && node .dcast-site-connect.mjs --name "" --url "". Pass the site code it prints as user_code. The key goes straight into the site's server environment; you never get it. A library, player, embed or upload button needs no key.

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": {
      "user_code": "<user_code>",
      "site_name": "<site_name>",
      "areas": "<areas>"
    },
    "name": "ask_site_access"
  }
}

Input Schema

NameRequiredDescriptionDefault
areasYesWhat the site server needs: {"videos":"read"} to list, {"videos":"write"} to upload
site_urlNoWebsite address shown to the owner
site_nameYesWebsite name shown to the owner
user_codeYesSite code the connector printed, e.g. BCDF-GHJK

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations, it discloses a concrete prerequisite (run the connector script in the project folder), how the input is produced (the printed site code), and a critical behavior: the key goes straight into the site's server environment and the agent never receives it. It also signals that a human owner action is required, which is essential for a non-readonly, non-idempotent tool.

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?

The purpose sentence comes first, followed by the exact command needed to produce the required input and a scoping note that rules out the wrong use case. The embedded command is long, but every part of it is operational and necessary, so there is no excess.

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 tool with a mandatory prerequisite and a human approval step, the definition covers the full setup path, the secret handling, and the exclusion case. With no output schema, it could say more about what a successful request returns or what to expect before the owner clicks Allow.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds meaning by showing how user_code is obtained and by tying site_name and site_url to the --name and --url flags of the connector command. It adds little about the nested areas object beyond what the schema documents.

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: it asks the account owner to authorize a website to call DCAST from its own server, and it requires one Allow click. It does not name the sibling get_site_access_status as the path for checking the resulting status, so the boundary with siblings is only implied.

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?

Gives clear context for when this is needed (a website calling DCAST from its own server) and an explicit exclusion ("A library, player, embed or upload button needs no key"). It omits telling the agent to consult get_site_access_status afterward or that approval is asynchronous, leaving that routing to inference.

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.