Skip to main content
Glama

Declare a connection

declare_connection
DestructiveIdempotent

Declares an external API (domain, authentication without a secret, callers), to be approved; a person enters the secret in while.

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": {
      "name": "<name>"
    },
    "name": "declare_connection"
  }
}

Input Schema

NameRequiredDescriptionDefault
appsNoCalling services and tasks (web, task:charger); by default, those of the while.yaml that declare it.
nameYesLowercase, digits, hyphens: weather, accounting.
readNoPatterns read with POST, allowed during learning: /api/v1/searches.
labelNoThe displayed name ("Pennylane").
modelNoAn AI or Snowflake (account, user, role, warehouse): domain and recipe set automatically.
ownerNoEmail of the owner; by default, the signed-in user.
rulesNoApproved with the declaration, they apply from the learning period on; federated: required. A POST that reads: its pattern also in read.
domainNoAPI host name, no path: api.example.com.
updateNoAn existing connection: read becomes the wanted list; removing applies at once, adding goes through approval.
projectNoThe project of the calling apps; by default, the token's.
directionNoThe apps will also write (POST, PUT, PATCH, DELETE).read
organizationNoThe organization.
learning_daysNoDays of learning.
authenticationNoRecipe, no secret: none; header {name, prefix}; parameter {name}; basic; bearer; oauth2 {token_url|issuer, scope, client_auth basic|body, header}; session {login_url, token_field, duration_seconds}; jwt {mode exchange|client_assertion|direct, token_url|issuer, alg RS256|ES256, duration_s, claims {iss, aud, scope, sub}, client_id, scope}, signed by while; model google {client_email, scopes}, salesforce {client_id, sub}, microsoft {tenant_id, client_id, scope, x5t}; federated: google {project_number, pool, provider, scopes, service_account?}, azure {tenant, client_id, scope}, generic {exchange_url}.
rate_per_minuteNoCalls allowed per minute.
secondary_domainsNoHosts relayed without a key (/~<host>/…).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / rules / description
      Previous value: -"Approved with the declaration, they apply from the learning period on (a write: POST /v3/smtp/email); federated: required. A POST that reads: its pattern also in read."New value: +"Approved with the declaration, they apply from the learning period on; federated: required. A POST that reads: its pattern also in read."
  2. Changed1 schema field changed
    • changedInput schema / properties / rules / description
      Previous value: -"Federated: required; a POST that reads: its pattern also in read."New value: +"Approved with the declaration, they apply from the learning period on (a write: POST /v3/smtp/email); federated: required. A POST that reads: its pattern also in read."
  3. Changed4 schema fields changed
    • removedInput schema / properties / post_read
      Removed value: -{
      -  "description": "Patterns read with POST, allowed during learning: /api/v1/searches.",
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • addedInput schema / properties / read
      Added value: +{
      +  "description": "Patterns read with POST, allowed during learning: /api/v1/searches.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • changedInput schema / properties / rules / description
      Previous value: -"Federated: required; a POST that reads: its pattern also in post_read."New value: +"Federated: required; a POST that reads: its pattern also in read."
    • changedInput schema / properties / update / description
      Previous value: -"An existing connection: post_read becomes the wanted list; removing applies at once, adding goes through approval."New value: +"An existing connection: read becomes the wanted list; removing applies at once, adding goes through approval."
  4. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already flag this as destructive, non-read-only and idempotent; the description adds genuinely new behavioral content by disclosing the approval gate and the fact that no secret is passed in the call — a person types it into the UI afterward. It does not elaborate on the consequences of the destructive hint (removals applying immediately) or on how long approval takes, which keeps it below a 5.

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

Conciseness3/5

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

It is a single short sentence with zero padding, so it is appropriately sized. However, the phrasing 'a person enters the secret in while' is grammatically broken and its meaning (the product name 'while') is only recoverable from the schema, which undercuts front-loaded clarity.

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?

For a 16-parameter tool with nested objects and no output schema, the description covers the two things the schema cannot imply: the approval workflow and external secret handling. It leaves out the approval lifecycle and the learning-period model (only discoverable via the learning_days and rules fields), so an agent cannot fully predict the call's effect from the description alone.

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% across 16 parameters, so the schema already carries the syntax burden for name, domain, rules, authentication recipes and learning_days. The description only echoes three of those areas and adds one useful nuance — that the authentication block excludes the secret — which is the correct baseline-3 level of added meaning.

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 a specific verb and resource (declares an external API connection) and enumerates the ingredients it captures: domain, authentication without a secret, and callers. An agent can distinguish it from list_connections or call_connection by the word 'declares', but it never explicitly separates the create path from update_connection, which handles existing connections.

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 implied rather than stated: the phrase 'to be approved' signals this is a request-for-approval flow, and the human-entered secret signals it is a provisioning step. There is no explicit when-to-use/when-not guidance and no routing to update_connection or list_connections for existing vs new connections, even though both exist among the siblings.

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