Skip to main content
Glama

Connect sources

sources_write

Connect GitHub or Google Drive and sync from it. Sync is one-way, into agentleFS, and repeats; a connector-owned path refuses direct edits. Also bind a GitHub issue to a folder or document (safe pointer only — never dumps grant-gated prose onto the issue). Actions — connect: start connecting an EXTERNAL account (provider), not a folder already in agentleFS (browse action=documents lists those); returns a link for the person to authorise in their browser. Only a folder's owner (a manager of some folder) may. sync: point one repository (repo_owner, repo_name, branch) or Drive folder (folder_id) of a connected account at a folder here (location) that you own: a manager of it, or a new top-level folder. vote: vote for a connector that does not exist yet (connector, why); one vote per person, shared with their agents. bind_issue: bind a GitHub issue to a folder or document you can read (issue: URL or owner/repo#N, location or node); returns a safe pointer body to post on the issue — never AFS titles or prose. unbind_issue: remove an issue↔node bind (issue, and/or location or node).

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

Input Schema

NameRequiredDescriptionDefault
whyNovote: what you would do with it, in one line (at most 200 characters); recorded with the vote
nodeNobind_issue, unbind_issue: folder or document node id, instead of location. A console link (`/d/<Name-Slug>-<32 hex>`, whole or just its id) is accepted too.
seatNothe seat token identity_write action=take_seat gave you; pass it on every call while you drive that agent, and each call that carries it keeps the seat yours for a whole lease from that call
issueNobind_issue, unbind_issue: GitHub issue URL or owner/repo#N (required for bind_issue, of_issue; optional for unbind_issue / github_issues)
actionYeswhat to do; each action takes the arguments its line names
branchNosync: GitHub only: the branch to follow (default: the repo default)
accountNosync: the connected account, exactly as browse action=sources prints it (the installation or account ref)
locationNosync: the FOLDER this source writes into, whole path from the workspace root, e.g. "handbook" or "handbook/vendor" · bind_issue, unbind_issue: folder or document path to bind. A console link (`/d/<Name-Slug>-<32 hex>`, whole or just its id) is accepted too.
providerNoconnect: which source to connect: github, or gdrive for Google Drive · sync: which connected account this source uses
acting_asNoan agent identity below you, or one working in a folder you can write (pass its seat too), by its id (from identity_write action=spawn) or its @handle (brief_me lists your agents with both), to make this one call as, with that agent's narrower access; for a helper whose session signs in as its person
connectorNovote: the product to connect, e.g. Notion
folder_idNosync: Google Drive only: the Drive folder id to pull
repo_nameNosync: GitHub only: the repository name
repo_ownerNosync: GitHub only: the repository owner
idempotency_keyNoAny unique string you choose for this write, e.g. a UUID. If you retry the call with the same key and the same arguments, the first answer is returned and nothing is done twice. Reusing a key for a different request is refused. Keys are kept 24 hours.

Output Schema

NameRequiredDescriptionDefault
bindNo
textNothe answer as prose, for an action that answers in prose
voteNo
bindsNo
actionYesthe action that answered
wantedNo
unboundNo
availableNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / seat / description
      Previous value: -"the seat token identity_write action=take_seat gave you; pass it on every call while you drive that agent, and each call that carries it keeps the seat yours for its lease"New value: +"the seat token identity_write action=take_seat gave you; pass it on every call while you drive that agent, and each call that carries it keeps the seat yours for a whole lease from that call"
  2. Changed1 schema field changed
    • changedInput schema / properties / acting_as / description
      Previous value: -"an agent identity below you, by its id (from identity_write action=spawn) or its @handle (brief_me lists your agents with both), to make this one call as, with that agent's narrower access; for a helper whose session signs in as its person"New value: +"an agent identity below you, or one working in a folder you can write (pass its seat too), by its id (from identity_write action=spawn) or its @handle (brief_me lists your agents with both), to make this one call as, with that agent's narrower access; for a helper whose session signs in as its person"
  3. Changed6 schema fields changed
    • removedOutput schema / additionalProperties
      Removed value: -false
    • removedOutput schema / properties / available / items / additionalProperties
      Removed value: -false
    • removedOutput schema / properties / bind / additionalProperties
      Removed value: -false
    • removedOutput schema / properties / binds / items / additionalProperties
      Removed value: -false
    • removedOutput schema / properties / vote / additionalProperties
      Removed value: -false
    • removedOutput schema / properties / wanted / items / additionalProperties
      Removed value: -false
  4. Changed2 schema fields changed
    • changedInput schema / properties / acting_as / description
      Previous value: -"an agent identity below you (its id, from identity_write action=spawn) to make this one call as, with that agent's narrower access; for a helper whose session signs in as its person"New value: +"an agent identity below you, by its id (from identity_write action=spawn) or its @handle (brief_me lists your agents with both), to make this one call as, with that agent's narrower access; for a helper whose session signs in as its person"
    • changedInput schema / properties / seat / description
      Previous value: -"the seat token identity_write action=take_seat gave you; pass it on every call while you drive that agent"New value: +"the seat token identity_write action=take_seat gave you; pass it on every call while you drive that agent, and each call that carries it keeps the seat yours for its lease"
  5. Changed2 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  6. Changed7 schema fields changed
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "connect",
      -  "sync",
      -  "vote"
      -]New value: +[
      +  "connect",
      +  "sync",
      +  "vote",
      +  "bind_issue",
      +  "unbind_issue"
      +]
    • addedInput schema / properties / issue
      Added value: +{
      +  "description": "bind_issue, unbind_issue: GitHub issue URL or owner/repo#N (required for bind_issue, of_issue; optional for unbind_issue / github_issues)",
      +  "type": "string"
      +}
    • changedInput schema / properties / location / description
      Previous value: -"sync: the FOLDER this source writes into, whole path from the workspace root, e.g. \"handbook\" or \"handbook/vendor\""New value: +"sync: the FOLDER this source writes into, whole path from the workspace root, e.g. \"handbook\" or \"handbook/vendor\" · bind_issue, unbind_issue: folder or document path to bind. A console link (`/d/<Name-Slug>-<32 hex>`, whole or just its id) is accepted too."
    • addedInput schema / properties / node
      Added value: +{
      +  "description": "bind_issue, unbind_issue: folder or document node id, instead of location. A console link (`/d/<Name-Slug>-<32 hex>`, whole or just its id) is accepted too.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / bind
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "issue": {
      +      "type": "string"
      +    },
      +    "kind": {
      +      "enum": [
      +        "folder",
      +        "document"
      +      ],
      +      "type": "string"
      +    },
      +    "location": {
      +      "type": "string"
      +    },
      +    "node": {
      +      "type": "string"
      +    },
      +    "pointer_body": {
      +      "type": "string"
      +    },
      +    "pointer_url": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "issue",
      +    "node",
      +    "location",
      +    "kind",
      +    "pointer_url",
      +    "pointer_body"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / binds
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "issue": {
      +        "type": "string"
      +      },
      +      "kind": {
      +        "enum": [
      +          "folder",
      +          "document"
      +        ],
      +        "type": "string"
      +      },
      +      "location": {
      +        "type": "string"
      +      },
      +      "node": {
      +        "type": "string"
      +      },
      +      "pointer_body": {
      +        "type": "string"
      +      },
      +      "pointer_url": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "issue",
      +      "node",
      +      "location",
      +      "kind",
      +      "pointer_url",
      +      "pointer_body"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / unbound
      Added value: +{
      +  "type": "boolean"
      +}
  7. Changed1 schema field changed
    • addedInput schema / properties / seat
      Added value: +{
      +  "description": "the seat token identity_write action=take_seat gave you; pass it on every call while you drive that agent",
      +  "maxLength": 64,
      +  "type": "string"
      +}
  8. Changed1 schema field changed
    • addedInput schema / properties / acting_as
      Added value: +{
      +  "description": "an agent identity below you (its id, from identity_write action=spawn) to make this one call as, with that agent's narrower access; for a helper whose session signs in as its person",
      +  "type": "string"
      +}
  9. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare it is not read-only, not destructive, open-world, and not idempotent; the description adds real behavior: sync is one-way and repeats, a connector-owned path refuses direct edits, connect returns a browser authorisation link, and bind_issue returns a safe pointer body that never exposes titles or prose. These are exactly the consequences an agent needs before calling a mutating connector tool, and nothing contradicts the annotations.

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 purpose and the sync constraint are front-loaded, then actions are enumerated in a scannable labelled list. It is dense and heavy with parentheticals, but almost every clause carries a rule (permissions, return values, forbidden edit paths) rather than filler.

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 15-parameter, five-action mutation tool with an output schema, the description supplies what the schema cannot: which action each parameter set belongs to, ownership requirements, one-way sync semantics, and what connect and bind_issue hand back. Nothing essential to invoking it correctly is missing.

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?

With 100% schema coverage the baseline is 3, and the description goes further by grouping parameters per action (repo_owner/repo_name/branch for GitHub sync, folder_id for Drive, issue/node/location for bind and unbind) and by adding ownership semantics to location ("a folder here that you own: a manager of it, or a new top-level folder"). It does not add much about why/seat/acting_as/idempotency_key beyond the schema, so it stops short of full marks.

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 resource ("Connect GitHub or Google Drive and sync from it") plus scope details (one-way, into agentleFS, repeating). It then distinguishes all five actions and explicitly contrasts connect with browsing an existing agentleFS folder via browse action=documents, so an agent can separate it from siblings without opening schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Each action carries its own when-to-use line (connect for an EXTERNAL account, sync to point a repo/Drive folder at a folder you own, vote for a not-yet-existing connector, bind/unbind for issues). It names alternatives and prerequisites — browse action=documents for existing folders, identity_write action=spawn for agent ids — and states the permission gate (only a folder's owner, or a manager).

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