Skip to main content
Glama

Connect Stripe or GitHub through the dashboard

anyhook_connect
Destructive

Hand the user the page that wires Stripe or GitHub to an app: they paste a provider key there, and AnyHook registers the app's inbound URL as a webhook at the provider, saves the signing secret it yields, and turns on signature verification at the edge. The key goes from the user to AnyHook, never through this conversation, and is not stored. Without appSlug a new app is created for the provider first. GitHub sends a signed ping once connected, so the first event appears within seconds (anyhook_events). Until the app has a destination (anyhook_destination_add), events are received and logged but not forwarded.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "anyhook_connect"
  }
}

Input Schema

NameRequiredDescriptionDefault
appSlugNoConnect this existing app. Omit to create a new app for the provider.
providerNoThe provider to connect. Names the new app when appSlug is left out; Stripe if omitted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / provider
      Added value: +{
      +  "description": "The provider to connect. Names the new app when appSlug is left out; Stripe if omitted.",
      +  "enum": [
      +    "stripe",
      +    "github"
      +  ],
      +  "type": "string"
      +}
    • removedInput schema / properties / provider_key
      Removed value: -{
      -  "description": "A Stripe secret or restricted key (sk_… / rk_…) or a GitHub token (github_pat_… / ghp_…). The provider is read from the key. Used once to register the webhook at the provider; AnyHook does not store it. Least privilege: a Stripe restricted key with Webhook Endpoints = Write, or a fine-grained GitHub token with Webhooks = Read and write.",
      -  "type": "string"
      -}
    • removedInput schema / properties / target
      Removed value: -{
      -  "description": "GitHub only: \"owner/repo\", or an organization name for an org-wide hook. Optional when the token administers exactly one repository.",
      -  "type": "string"
      -}
    • removedInput schema / required
      Removed value: -[
      -  "provider_key"
      -]
  2. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  3. Changed1 schema field changed
    • removedInput schema / properties / api_key
      Removed value: -{
      -  "description": "API key (ahk_live_...) from anyhook_quickstart. Only needed over HTTP when no Authorization header is set; ignored over stdio.",
      -  "type": "string"
      -}
  4. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations state that the tool is not read-only, is destructive, and is open-world, but they do not explain why it is destructive. The description adds important behavioral context: the key never passes through the conversation and is not stored, and events are received and logged but not forwarded until a destination is added. It does not mention the permissions or provider-side scope needed, nor does it explain the destructive framing, such as what gets overwritten at the provider.

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 description is front-loaded with the core action and then its consequences, with no filler sentences. The parenthetical sibling references are a little dense, but each sentence carries operational information.

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?

There is no output schema, so this description carries the burden of explaining the return value. It conveys that the page is handed to the user, but it does not say explicitly that the tool returns a link or URL that the agent should present, nor what the response contains if appSlug is omitted. Its coverage of preconditions and postconditions is otherwise strong.

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 100%, and the schema already documents that appSlug omitted means a new app, and that provider defaults to Stripe. The description restates these points rather than adding format or conditional details beyond them. Baseline 3 for a fully documented two-parameter schema.

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 description uses a specific verb and resource: it hands the user a page that wires Stripe or GitHub to an app. It also spells out the resulting side effects: the provider webhook registration, the saved signing secret, and the edge-level signature verification. An agent can distinguish this tool from anyhook_apps_create because it states that an app is created only as a side effect when appSlug is omitted.

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?

The description clearly establishes context: the user supplies a provider key on a hosted page, rather than through this conversation. It also says what happens when appSlug is omitted. It does not explicitly state when to choose another tool, and it mentions siblings only for follow-up actions (anyhook_events, anyhook_destination_add), not as alternatives.

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.