Skip to main content
Glama

Save an AI app's callback address

save_sign_in_callback
Destructive

Asks to save the callback address an AI app shows for one of the workspace's sign-ins, so people can sign in through it. Copilot Studio's starts with https://global.consent.azure-apim.net/redirect/. It replaces the address saved now. Owners and admins only. Nothing happens until you approve it in CodeGene: the answer gives a link to the request, which waits there for 15 minutes. Send the person that link; you cannot approve it. Then call get_approval with the requestId to learn how it ended.

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": {
      "client_id": "<client_id>",
      "callback_url": "<callback_url>"
    },
    "name": "save_sign_in_callback"
  }
}

Input Schema

NameRequiredDescriptionDefault
client_idYesThe sign-in's Client ID (list_sign_in_clients gives them).
callback_urlYesThe callback address the app shows, pasted exactly.
workspace_idNoWorkspace id from whoami; omit when there is one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

The annotations declare destructiveHint=true and readOnlyHint=false, and the description corroborates and enriches this: it states the existing saved address is replaced. It goes well beyond the annotations by disclosing the out-of-band approval requirement, the 15-minute expiry of the pending request, the fact that the agent cannot self-approve, and the shape of the response (link + requestId).

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?

Every sentence carries information that cannot be inferred elsewhere: the approval flow, the expiry, the link handoff, and the follow-up call. The first sentence is convoluted ('Asks to save the callback address an AI app shows...') and the approval detail is appended rather than front-loaded, costing some immediacy.

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 destructive mutation with a multi-step approval handshake and no output schema, the description supplies what an agent needs: role gate, irreversibility, the pending-request lifecycle, the returned link/requestId, and the follow-up tool. Nothing material about correct invocation is left to inference.

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. The description adds a concrete format cue for callback_url (Copilot Studio's begins with https://global.consent.azure-apim.net/redirect/) and reinforces that the address must be pasted exactly, which helps validate input beyond the schema's min/max length constraints.

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

Purpose5/5

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

The opening states a specific verb and object: it saves the callback address an AI app shows for one of the workspace's sign-ins. It is clearly distinct from create_sign_in_client, rotate_sign_in_client_secret, and the other client-management siblings, and the Copilot Studio example anchors what a callback address looks like.

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 the caller a clear operating context: owners/admins only, the change does not take effect until approved in CodeGene, and the agent must forward the returned link to the person rather than approve it itself. It also names the follow-up step (get_approval with the requestId). It stops short of explicitly naming the sibling that supplies the client_id or what to do if the address should not be replaced.

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