Learn
Learning management: members, cohorts, programs, stages, milestones, and the wiki. learn is the canonical home for Members — lookup_member lives here.
- Connector
https://mcp.devfellowship.com/mcp
- Tools
- 67 in 10 groups
- Package
packages/dfl-mcp-learn- Auth
- Sign in once on the DFL connector. Every call runs as you, under RLS and your IAM role. See Auth & security.
Connect
Add the one DFL connector, https://mcp.devfellowship.com/mcp, to your client. Sign in once. On the consent page
choose the learn domain: read gives the scope learn.read, and write gives
learn.write. The steps for each client are on
Connect the DFL MCP.
Then find a tool of this domain with the router tools of the connector:
-
search_toolswith a keyword or an exact tool name. Each result giveslearn.<tool>and its mode (read or write).{ "query": "list_members" } -
describe_toolwith that id for the description and the input schema.{ "tool": "learn.list_members" } -
call_read_toolfor a read tool, orcall_write_toolfor a write tool, with the id and the arguments.
Scripts and agents that sign in with a token: see Getting started, For scripts.
| Backing data | lms / public schemas (members, profiles, programs, cohorts). |
Members
Section titled “Members”The canonical Members group — member CRUD, profiles, and lookup_member (name → public.members.id, the id other MCPs reference, e.g. work.placements.member_id).
Find a member by name, and read or edit members, profiles, and the private data and notes of a member.
list_members
List all members with optional filters.read
list_membersList Members
List all members with optional filters. Returns members you have access to based on your permissions.
| Parameter | Type | Required | Description |
|---|---|---|---|
limit | number | no | Maximum number of members to return (default: 50, max: 100) |
offset | number | no | Number of members to skip (for pagination) |
phase_id | string | no | Filter by member phase (e.g., waiting_list, active, alumni) |
is_active | boolean | no | Filter by active status. |
search | string | no | Search by name or email. |
get_member
Get a specific member by their ID.read
get_memberGet Member
Get a specific member by their ID.
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | yes | The UUID of the member. |
create_member
Create a new community member.
create_memberCreate Member
Create a new community member.
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | yes | Full name of the member. |
personal_email | string | no | Personal email address. |
corporate_email | string | no | Corporate/work email address. |
phone | string | no | Phone number. |
city | string | no | City. |
state | string | no | State/Province. |
phase_id | string | no | Member phase (e.g., waiting_list, active) |
tags | string[] | no | Tags for the member. |
user_id | string | no | The login (public.profiles id) this member row belongs to. Only at create: update_member cannot change it. The owner of a row (user_id = the caller) updates its own profile and the process-map nodes it owns. |
update_member
Update an existing community member, under the caller's RLS (a global admin updates any member; the owner updates its own profile, not its pinned program columns).
update_memberUpdate Member
Update an existing community member, under the caller's RLS (a global admin updates any member; the owner updates its own profile, not its pinned program columns). Program columns (ciclo, fellow_role, seniority, english_level, profession, github_username, linkedin_url, referred_by, onboarding_completed_at, crm_member_id) accept null to clear them. Private data (CPF, PIX, bank, address) is NOT here: use upsert_member_sensitive.
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | yes | The UUID of the member to update. |
name | string | no | Full name of the member. |
personal_email | string | no | Personal email address. |
corporate_email | string | no | Corporate/work email address. |
phone | string | no | Phone number. |
city | string | no | City. |
state | string | no | State/Province. |
phase_id | string | no | Member phase. |
tags | string[] | no | Tags for the member. |
is_active | boolean | no | Whether the member is active. |
ciclo | string | no | Program cycle (ciclo) of the fellow. |
fellow_role | string | no | Role of the fellow in the program. |
seniority | string | no | Seniority level. |
english_level | string | no | English level. |
profession | string | no | Profession. |
github_username | string | no | GitHub username. |
linkedin_url | string | no | LinkedIn profile URL. |
referred_by | string | no | Who referred the member. |
onboarding_completed_at | string | no | Date the onboarding was completed, YYYY-MM-DD. |
crm_member_id | string | no | Id of the member in the CRM (Twenty fellow id) |
delete_member
Soft delete a member by setting is_active to false.
delete_memberDelete Member
Soft delete a member by setting is_active to false.
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | yes | The UUID of the member to delete. |
hard_delete | boolean | no | If true, permanently delete the member (use with caution) |
lookup_member
Resolve a fellow's name to their public.members.id (e.g. the id used as work.placements.member_id).read
lookup_memberLookup Member
Resolve a fellow's name to their public.members.id (e.g. the id used as work.placements.member_id). Tries exact case-insensitive match first, then a fuzzy substring (ilike) match. Returns all candidates so the caller can disambiguate before using the id (e.g. creating a placement via the work MCP).
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | yes | Fellow's name (full or partial; case-insensitive) |
limit | number | no | Maximum number of candidates to return (default 10) |
include_inactive | boolean | no | Include members where is_active = false (default false) |
upsert_member_sensitive
Write the private data of one member (CPF, RG, CNPJ, birth date, PIX key, bank account, address, full name) into public.members_sensitive, under the caller's RLS.
upsert_member_sensitiveUpsert Member Sensitive Data
Write the private data of one member (CPF, RG, CNPJ, birth date, PIX key, bank account, address, full name) into public.members_sensitive, under the caller's RLS. Only the fields given change; the same input twice gives the same row. CPF and CNPJ are stored as digits only; a CPF with fewer than 11 digits is left-padded with zeros. A global admin writes any member and creates the row; the owner updates its own existing row. With no data field, the tool only makes sure the row exists (needed before set_member_notes). source_ref is stored only when the row is created; an existing row keeps its source_ref. The result never repeats a value: it returns member_id, the names of the fields written, and booleans.
| Parameter | Type | Required | Description |
|---|---|---|---|
member_id | string | yes | public.members.id of the member. |
source_ref | string | no | Idempotency / provenance key, unique across rows, e.g. "twenty:fellow:<uuid>". |
full_name | string | no | Full legal name. null clears it; omit to keep it. |
cpf | string | no | CPF, any format (dots and dashes are removed; fewer than 11 digits are left-padded with zeros). null clears it; omit to keep it. |
rg | string | no | RG. null clears it; omit to keep it. |
cnpj | string | no | CNPJ, any format (stored as 14 digits). null clears it; omit to keep it. |
birth_date | string | no | Birth date, YYYY-MM-DD. null clears it; omit to keep it. |
pix_key | string | no | PIX key. null clears it; omit to keep it. |
bank_name | string | no | Bank name. null clears it; omit to keep it. |
bank_branch | string | no | Bank branch (agência). null clears it; omit to keep it. |
bank_account | string | no | Bank account number. null clears it; omit to keep it. |
address_full | string | no | Full address in one line. null clears it; omit to keep it. |
address_street | string | no | Street and number. null clears it; omit to keep it. |
address_street_2 | string | no | Address complement. null clears it; omit to keep it. |
address_district | string | no | District (bairro). null clears it; omit to keep it. |
address_postal_code | string | no | Postal code (CEP). null clears it; omit to keep it. |
address_city_state | string | no | City and state, e.g. "São Paulo/SP". null clears it; omit to keep it. |
get_member_sensitive
Read the private data of one member (CPF, RG, CNPJ, birth date, PIX key, bank account, address, full name) from public.members_sensitive, under the caller's RLS.read
get_member_sensitiveGet Member Sensitive Data
Read the private data of one member (CPF, RG, CNPJ, birth date, PIX key, bank account, address, full name) from public.members_sensitive, under the caller's RLS. Values are not masked. Only the member itself and a global admin get the row; any other caller gets "not found or not allowed". A global admin also gets the notes (from the admin-only view public.member_notes).
| Parameter | Type | Required | Description |
|---|---|---|---|
member_id | string | yes | public.members.id of the member. |
set_member_notes
Write the admin notes (members_sensitive.notes, a JSON array of {date, content, title?, source_ref?}) of one member through the admin-only view public.member_notes.
set_member_notesSet Member Notes
Write the admin notes (members_sensitive.notes, a JSON array of {date, content, title?, source_ref?}) of one member through the admin-only view public.member_notes. Global admin only. mode "replace" writes the given array; mode "merge_by_source_ref" appends only the notes whose source_ref is not stored yet (every note needs a source_ref; a re-run adds nothing). Fails when the members_sensitive row does not exist (create it with upsert_member_sensitive) or when the caller is not a global admin. Returns counts only.
| Parameter | Type | Required | Description |
|---|---|---|---|
member_id | string | yes | public.members.id of the member. |
notes | object[] | yes | The notes. |
mode | enum | yes | replace = write this array; merge_by_source_ref = append the new source_refs. One of: replace, merge_by_source_ref. |
remove_member_personal_data_keys
Remove named keys from public.members.personal_data (jsonb) for many members.
remove_member_personal_data_keysRemove Member Personal Data Keys
Remove named keys from public.members.personal_data (jsonb) for many members. Global admin only; runs on the caller's JWT. dry_run defaults to true: it reports what it would change and writes nothing. With require_in_sensitive (default true), a member whose personal_data holds a non-empty value for a key that has a members_sensitive column of the same name is REFUSED when members_sensitive has no value for it (listed, not changed); a different value is not a refusal. A key with no members_sensitive column needs require_in_sensitive false. member_ids limits the run; omit it for every member. Idempotent. The result holds member ids, key names and counts only, never a value.
| Parameter | Type | Required | Description |
|---|---|---|---|
keys | string[] | yes | Keys to remove from personal_data, e.g. ["pix_key"]. |
member_ids | string[] | no | public.members.id list to limit the run. Omit for all members. |
dry_run | boolean | no | true (default): report only, write nothing. false: write. Default: true. |
require_in_sensitive | boolean | no | true (default): refuse a member whose value would exist only in personal_data. Default: true. |
list_profiles
List user profiles with optional filters.read
list_profilesList Profiles
List user profiles with optional filters.
| Parameter | Type | Required | Description |
|---|---|---|---|
limit | number | no | Maximum number of profiles to return (default: 50, max: 100) |
offset | number | no | Number of profiles to skip (for pagination) |
search | string | no | Search by name or email. |
get_profile
Get a specific user profile by ID.read
get_profileGet Profile
Get a specific user profile by ID.
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | yes | The UUID of the profile. |
update_profile
Update your own profile. Only the authenticated user can update their profile.write
update_profileUpdate Profile
Update your own profile. Only the authenticated user can update their profile.
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | no | Display name. |
avatar_url | string | no | Avatar URL. |
Cohorts
Section titled “Cohorts”The class groups (cohorts) of the learning platform.
list_cohorts
List LMS cohorts (batches, e.g. "Winter 2025", "Summer 2026") with optional filters.read
list_cohortsList Cohorts
List LMS cohorts (batches, e.g. "Winter 2025", "Summer 2026") with optional filters. Reads lms.cohorts (RLS: any authenticated user can read).
| Parameter | Type | Required | Description |
|---|---|---|---|
status | enum | no | Filter by cohort lifecycle status. One of: active, graduated, draft, archived. |
batch_type | enum | no | Filter by batch type ('fellow' or 'organization') One of: fellow, organization. |
search | string | no | Search by cohort name or slug. |
limit | number | no | Max cohorts to return (default 50, max 100) |
offset | number | no | Number of cohorts to skip (pagination) |
create_cohort
Create an LMS cohort (batch).write
create_cohortCreate Cohort
Create an LMS cohort (batch). Admin only — RLS rejects writes from non-global-admins. If slug is omitted it is derived from the name.
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | yes | Cohort display name, e.g. "Winter 2025". |
slug | string | no | URL-safe slug (unique). Defaults to a slugified name, e.g. "winter-2025". |
year | number | no | Cohort year (informational) |
status | enum | no | Lifecycle status (default 'active') One of: active, graduated, draft, archived. |
batch_type | enum | no | Batch type, 'fellow' or 'organization' (default 'fellow') One of: fellow, organization. |
organization_id | string | no | Optional org id for organization batches. |
organization_name | string | no | Optional org display name. |
starts_on | string | no | Informational start date (YYYY-MM-DD). NOT used to drive the Gantt sequence. |
update_cohort
Update an LMS cohort. Admin only — RLS rejects writes from non-global-admins.write
update_cohortUpdate Cohort
Update an LMS cohort. Admin only — RLS rejects writes from non-global-admins.
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | yes | The UUID of the cohort to update. |
name | string | no | Cohort display name. |
slug | string | no | URL-safe unique slug. |
year | number | no | Cohort year. |
status | enum | no | Lifecycle status. One of: active, graduated, draft, archived. |
batch_type | enum | no | Batch type ('fellow' or 'organization') One of: fellow, organization. |
organization_id | string | no | Org id for organization batches. |
organization_name | string | no | Org display name. |
starts_on | string | no | Informational start date (YYYY-MM-DD) |
Programs
Section titled “Programs”Curriculum programs (the Gantt view): create one from a template for a cohort, and see how far each member got.
list_programs
List LMS programs (curriculum trees rendered by the Gantt).read
list_programsList Programs
List LMS programs (curriculum trees rendered by the Gantt). A program is either a reusable TEMPLATE or a per-cohort INSTANCE. Filter by kind and/or cohort_id.
| Parameter | Type | Required | Description |
|---|---|---|---|
kind | enum | no | Filter by 'template' (reusable plan) or 'instance' (a cohort's live program) One of: template, instance. |
cohort_id | string | no | Filter to the instance program belonging to this cohort. |
search | string | no | Search by program name or slug. |
limit | number | no | Max programs to return (default 50, max 100) |
offset | number | no | Number of programs to skip (pagination) |
get_program
Read ONE LMS program by id (or slug) together with its full tree: stages (ordered by position) each with their milestones (ordered by position), plus the program's stage_dependencies edges.read
get_programGet Program (deep)
Read ONE LMS program by id (or slug) together with its full tree: stages (ordered by position) each with their milestones (ordered by position), plus the program's stage_dependencies edges. This is the read that powers the Gantt and verifies an authored template/instance. READ-ONLY.
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | no | The program UUID (preferred). Provide id OR slug. |
slug | string | no | The program slug (e.g. "winter-2025"). Used if id is omitted. |
create_program
Create an LMS program. Admin only.write
create_programCreate Program
Create an LMS program. Admin only. For kind='instance' (a cohort's live program), STRONGLY prefer the instantiate_program tool, which deep-copies a template into a cohort. Use create_program directly to author a new TEMPLATE, or to author an instance from scratch. Invariants: a template must NOT have cohort_id/source_program_id; an instance MUST have cohort_id.
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | yes | Program name. |
slug | string | no | URL-safe slug; defaults to a slugified name. |
kind | enum | no | 'template' (reusable plan, default) or 'instance' (per-cohort) One of: template, instance. |
status | enum | no | Program status (default 'active') One of: upcoming, locked, active, done. |
cohort_id | string | no | Required for kind='instance' — the cohort this program serves. Must be omitted for templates. |
source_program_id | string | no | For an instance authored from a template: the template id it was copied from. Omit for templates. |
update_program
Update an LMS program's name, slug, or status.write
update_programUpdate Program
Update an LMS program's name, slug, or status. Admin only. Note: kind / cohort_id / source_program_id are immutable here — to put a template into a cohort use instantiate_program.
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | yes | The UUID of the program to update. |
name | string | no | Program name. |
slug | string | no | URL-safe slug. |
status | enum | no | Program status. One of: upcoming, locked, active, done. |
delete_program
Delete an LMS program. Admin only.
delete_programDelete Program
Delete an LMS program. Admin only. CASCADE removes its stages, milestones, and stage_dependencies. Deleting an instance program detaches it from its cohort.
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | yes | The UUID of the program to delete. |
instantiate_program
Deep-copy a TEMPLATE program tree (program -> stages -> milestones -> stage_dependencies) into a new per-cohort INSTANCE program, and return the new instance program id.write
instantiate_programInstantiate Program
Deep-copy a TEMPLATE program tree (program -> stages -> milestones -> stage_dependencies) into a new per-cohort INSTANCE program, and return the new instance program id. This is the preferred way to give a cohort its curriculum. Admin only — the SQL function self-checks global-admin. Idempotent per cohort: if the cohort already has an instance program, that existing program id is returned (no duplicate tree).
| Parameter | Type | Required | Description |
|---|---|---|---|
template_id | string | yes | The UUID of the TEMPLATE program to copy (kind='template') |
cohort_id | string | yes | The UUID of the cohort to instantiate the program for. |
get_program_member_progress
Read the lms.program_member_progress VIEW — computed per-(member, cohort) progress through the cohort's instance program (total milestones, done milestones, percentage, last completion).read
get_program_member_progressGet Program Member Progress
Read the lms.program_member_progress VIEW — computed per-(member, cohort) progress through the cohort's instance program (total milestones, done milestones, percentage, last completion). READ-ONLY. RLS is security_invoker: a non-admin caller only sees their own progress rows; a global admin sees everyone. Provide cohort_id (recommended) and/or a specific user_id to filter.
| Parameter | Type | Required | Description |
|---|---|---|---|
cohort_id | string | no | Filter progress to a single cohort. |
program_id | string | no | Filter by the cohort's instance program id (resolved to its cohort_id under the hood) |
user_id | string | no | Filter to a single member (admin-only view of other members) |
limit | number | no | Max rows to return (default 100, max 500) |
offset | number | no | Number of rows to skip (pagination) |
Program Stages
Section titled “Program Stages”The top-level stages of a program.
list_stages
List the stages (top-level Gantt nodes) of a program, ordered by position.read
list_stagesList Stages
List the stages (top-level Gantt nodes) of a program, ordered by position. Each stage includes its milestone count.
| Parameter | Type | Required | Description |
|---|---|---|---|
program_id | string | yes | The UUID of the program whose stages to list. |
create_stage
Create a stage (top-level Gantt node) under a program.write
create_stageCreate Stage
Create a stage (top-level Gantt node) under a program. Admin only. Stages inherit template-vs-instance from their program.
| Parameter | Type | Required | Description |
|---|---|---|---|
program_id | string | yes | The UUID of the program this stage belongs to. |
title | string | yes | Stage title. |
subtitle | string | no | Optional subtitle. |
color | string | no | Hex color that tints the Gantt bar, e.g. "#4F46E5". |
position | number | no | Sequence order within the program (default 0) |
status | enum | no | Node status (default 'upcoming') One of: upcoming, locked, active, done. |
update_stage
Update a stage. Admin only.write
update_stageUpdate Stage
Update a stage. Admin only.
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | yes | The UUID of the stage to update. |
title | string | no | Stage title. |
subtitle | string | no | Subtitle. |
color | string | no | Hex color for the Gantt bar. |
position | number | no | Sequence order within the program. |
status | enum | no | Node status. One of: upcoming, locked, active, done. |
delete_stage
Delete a stage. Admin only.
delete_stageDelete Stage
Delete a stage. Admin only. CASCADE removes its milestones.
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | yes | The UUID of the stage to delete. |
Program Milestones
Section titled “Program Milestones”The milestones inside a program stage.
list_milestones
List the milestones under a stage, ordered by position.read
list_milestonesList Milestones
List the milestones under a stage, ordered by position.
| Parameter | Type | Required | Description |
|---|---|---|---|
stage_id | string | yes | The UUID of the stage whose milestones to list. |
create_milestone
Create a milestone under a stage.write
create_milestoneCreate Milestone
Create a milestone under a stage. Admin only. points is the gamification weight (default 0).
| Parameter | Type | Required | Description |
|---|---|---|---|
stage_id | string | yes | The UUID of the stage this milestone belongs to. |
title | string | yes | Milestone title. |
description | string | no | Milestone description. |
position | number | no | Sequence order within the stage (default 0) |
points | number | no | Gamification weight / value (default 0) |
status | enum | no | Node status (default 'upcoming') One of: upcoming, locked, active, done. |
linked_material_id | string | no | Optional loose link to a lesson/material UUID. |
linked_tool_id | string | no | Optional tool-catalog key. |
update_milestone
Update a milestone. Admin only.write
update_milestoneUpdate Milestone
Update a milestone. Admin only.
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | yes | The UUID of the milestone to update. |
title | string | no | Milestone title. |
description | string | no | Milestone description. |
position | number | no | Sequence order within the stage. |
points | number | no | Gamification weight / value. |
status | enum | no | Node status. One of: upcoming, locked, active, done. |
linked_material_id | string | no | Loose link to a lesson/material UUID. |
linked_tool_id | string | no | Tool-catalog key. |
delete_milestone
Delete a milestone. Admin only.
delete_milestoneDelete Milestone
Delete a milestone. Admin only. Associated completion rows cascade.
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | yes | The UUID of the milestone to delete. |
Program Dependencies
Section titled “Program Dependencies”Which stage must come before which other stage.
list_stage_dependencies
List the sequence/dependency edges (predecessor -> successor) of a program.read
list_stage_dependenciesList Stage Dependencies
List the sequence/dependency edges (predecessor -> successor) of a program. These drive the dependency Gantt and the "locked until prerequisite done" gating.
| Parameter | Type | Required | Description |
|---|---|---|---|
program_id | string | yes | The UUID of the program whose dependency edges to list. |
node_kind | enum | no | Filter to edges between 'stage' nodes or 'milestone' nodes. One of: stage, milestone. |
add_stage_dependency
Add a sequence/dependency edge (predecessor -> successor) within a program.write
add_stage_dependencyAdd Stage Dependency
Add a sequence/dependency edge (predecessor -> successor) within a program. node_kind must match the type of both endpoint ids (stage.id or milestone.id). Admin only. The successor is gated until the predecessor is done.
| Parameter | Type | Required | Description |
|---|---|---|---|
program_id | string | yes | The UUID of the program the edge belongs to. |
node_kind | enum | yes | Whether this edge connects 'stage' nodes or 'milestone' nodes (both endpoints must be this kind) One of: stage, milestone. |
predecessor_id | string | yes | UUID of the prerequisite node (stage.id or milestone.id per node_kind) |
successor_id | string | yes | UUID of the dependent node (stage.id or milestone.id per node_kind) |
remove_stage_dependency
Remove a dependency edge.write
remove_stage_dependencyRemove Stage Dependency
Remove a dependency edge. Admin only. Provide either the edge id, OR the full tuple (program_id + node_kind + predecessor_id + successor_id).
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | no | The UUID of the dependency edge to remove. |
program_id | string | no | Program id (when removing by tuple) |
node_kind | enum | no | Edge kind (when removing by tuple) One of: stage, milestone. |
predecessor_id | string | no | Predecessor node id (when removing by tuple) |
successor_id | string | no | Successor node id (when removing by tuple) |
Wiki articles
Section titled “Wiki articles”The dfl-wiki articles (wiki.articles, wiki.devfellowship.com). Every call runs on the caller’s JWT, and the wiki’s own RLS decides: a signed-in caller reads drafts too; only the author or a global admin writes an article. No service role.
Write, edit and publish articles on the DFL wiki.
list_wiki_articles
List dfl-wiki articles (wiki.devfellowship.com), newest update first, without the body.read
list_wiki_articlesList Wiki Articles
List dfl-wiki articles (wiki.devfellowship.com), newest update first, without the body. Filters: status, visibility, a tag, a slug prefix, a title search. Each row carries its visibility. You see only the rows the wiki RLS lets you read. Who can read: public = anonymous readers when published; members = DFL members, the author and global admins; private = only the author and global admins. A draft that is not private is readable by DFL members (not by every signed-in account).
| Parameter | Type | Required | Description |
|---|---|---|---|
status | enum | no | Only this status. One of: draft, published, archived. |
visibility | enum | no | Only this visibility. One of: public, members, private. |
tag | string | no | Only articles that carry this tag. |
slug_prefix | string | no | Only slugs that start with this, e.g. "content-visual". |
search | string | no | Case-insensitive match on the title. |
project_id | string | no | Only articles of this work.projects id. |
parent_slug | string | no | Only the direct children of this article (metadata.parent_slug) |
limit | number | no | Max rows (default 50, max 200) |
get_wiki_article
One dfl-wiki article by id or slug, with its markdown body, its content type, its status and its visibility.read
get_wiki_articleGet Wiki Article
One dfl-wiki article by id or slug, with its markdown body, its content type, its status and its visibility. Who can read: public = anonymous readers when published; members = DFL members, the author and global admins; private = only the author and global admins. A draft that is not private is readable by DFL members (not by every signed-in account).
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | no | Article UUID (pass id OR slug) |
slug | string | no | Article slug, as in wiki.devfellowship.com/a/<slug> (pass id OR slug) |
create_wiki_article
Create a dfl-wiki article AS THE CALLER (author_id = you), as a DRAFT by default.write
create_wiki_articleCreate Wiki Article
Create a dfl-wiki article AS THE CALLER (author_id = you), as a DRAFT by default. Same fields as the wiki create form. The slug defaults to the form's rule applied to the title. The content type defaults to "guide". Publish later with publish_wiki_article. visibility defaults to public (the database default). Who can read: public = anonymous readers when published; members = DFL members, the author and global admins; private = only the author and global admins. A draft that is not private is readable by DFL members (not by every signed-in account).
| Parameter | Type | Required | Description |
|---|---|---|---|
title | string | yes | Article title. |
slug | string | no | URL slug (unique). Default: generated from the title. |
content | string | no | Markdown body (GFM) |
excerpt | string | no | Short summary shown in lists. |
content_type_id | string | no | wiki.content_types id (wins over content_type_slug) |
content_type_slug | string | no | wiki.content_types slug, e.g. guide, feature, architecture. Default: guide. |
project_id | string | no | work.projects id to group the article under. |
tags | string[] | no | Tags. |
status | enum | no | Default: draft. One of: draft, published, archived. |
visibility | enum | no | public | members | private. Default: public (omitted from the insert, so the database default applies) One of: public, members, private. |
metadata | object | no | JSON object stored in wiki.articles.metadata. Known keys: parent_slug (slug of the parent article in the tree; validated: it must exist and must not make a cycle); master (boolean: this article is the entry of a knowledge tree, the wiki marks it as a master article); featured (boolean: show the article in the wiki home "Start here"). master and featured must be true or false; any other type is refused. |
update_wiki_article
Change fields of a dfl-wiki article, by id or slug.write
update_wiki_articleUpdate Wiki Article
Change fields of a dfl-wiki article, by id or slug. Only the fields you pass change. The wiki lets only the author or a global admin write. The status changes with publish_wiki_article. metadata merges by default (see replace_metadata); renaming a slug does not rewrite children's parent_slug. visibility changes here (unchanged when omitted). Who can read: public = anonymous readers when published; members = DFL members, the author and global admins; private = only the author and global admins. A draft that is not private is readable by DFL members (not by every signed-in account).
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | no | Article UUID (pass id OR slug) |
slug | string | no | Article slug, as in wiki.devfellowship.com/a/<slug> (pass id OR slug) |
title | string | no | — |
new_slug | string | no | Rename the slug (links to the old one break) |
content | string | no | Markdown body (replaces the whole body) |
excerpt | string | no | — |
content_type_id | string | no | — |
project_id | string | no | null removes the project. |
tags | string[] | no | Replaces the tag list. |
visibility | enum | no | public | members | private. Unchanged when omitted. One of: public, members, private. |
metadata | object | no | Metadata patch. By default a shallow MERGE into the existing metadata: keys you pass win, keys you omit stay, a null value removes that key. parent_slug is validated (must exist, no cycle); master and featured must be booleans (or null to remove). Set replace_metadata to replace the whole object. |
replace_metadata | boolean | no | true: metadata REPLACES the existing object (keys you omit are dropped). Default false: merge. |
publish_wiki_article
Set the status of a dfl-wiki article: published (default), draft or archived.write
publish_wiki_articlePublish Wiki Article
Set the status of a dfl-wiki article: published (default), draft or archived. By id or slug; the author or a global admin only. The status does not change the visibility: a published article is readable by anonymous readers only when its visibility is public (set visibility with update_wiki_article). Who can read: public = anonymous readers when published; members = DFL members, the author and global admins; private = only the author and global admins. A draft that is not private is readable by DFL members (not by every signed-in account).
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | no | Article UUID (pass id OR slug) |
slug | string | no | Article slug, as in wiki.devfellowship.com/a/<slug> (pass id OR slug) |
status | enum | no | Default: published. One of: draft, published, archived. |
Fellow slugs
Section titled “Fellow slugs”public.profiles.fellow_slug links a Thumbify fellows/<slug> folder to a DFL
user. Both tools are admin only (global level >= 80): the tool refuses a
lower caller before it reads or writes, and the RLS policy
profiles_admin_update (iam.is_global_admin()) enforces the same rule in the
database. Caller user-JWT, never service_role. These tools moved here from
Platform (ops) (plan task T2.5).
Which Thumbify fellow folder belongs to which user.
set_profile_fellow_slug
Set or clear public.profiles.fellow_slug of ONE user: the Thumbify fellows/<slug> folder that belongs to that user.
set_profile_fellow_slugSet Profile Fellow Slug
Set or clear public.profiles.fellow_slug of ONE user: the Thumbify fellows/<slug> folder that belongs to that user. Admin only (global IAM level >= 80): the tool refuses a lower caller before it touches anything, and RLS policy profiles_admin_update enforces the same rule in the database. Runs on YOUR JWT, never service_role. The slug is lowercase a-z, 0-9 and "-" (the DB CHECK). A slug maps to at most one user (partial unique index): if another user holds it, the tool returns outcome=slug_taken with that user id and writes nothing. null clears the slug. Use dry_run to see the change first. Read the current mapping with list_profile_fellow_slugs.
| Parameter | Type | Required | Description |
|---|---|---|---|
user_id | string | yes | public.profiles id (= auth.users id) of the user. |
fellow_slug | string | yes | The Thumbify fellows/<slug> folder name, e.g. "tainan". null clears it. |
dry_run | boolean | no | Resolve and report what would change, and write nothing. Default false. |
list_profile_fellow_slugs
List every user that has a public.profiles.fellow_slug (the Thumbify fellows/<slug> folder mapping): user_id, name, fellow_slug, ordered by slug.read
list_profile_fellow_slugsList Profile Fellow Slugs
List every user that has a public.profiles.fellow_slug (the Thumbify fellows/<slug> folder mapping): user_id, name, fellow_slug, ordered by slug. Admin only (global IAM level >= 80), the same gate as set_profile_fellow_slug. Runs on YOUR JWT.
Takes no parameters.
Test My Agent
Section titled “Test My Agent”Tools for TestMyAgent. Each call goes to the TestMyAgent
API as you: the host exchanges your DFL login for a TestMyAgent session, and refuses a caller below
DFL IAM level 50. The first words of each description name its group. READ spends nothing.
SETUP creates or changes your own tasks, agents and custom models and starts no run.
HOSTED is the path that runs on TestMyAgent infra; the quote spends nothing, a hosted start
spends model credits. LOCAL runs on your own machine and spends nothing on TestMyAgent: use
get_tma_local_run_setup for the commands, and upload only the numbers. Every evaluation and run
read carries result_origin (hosted, self_declared or unknown). No tool takes or returns a
model API key or a TestMyAgent session token.
TestMyAgent: read tasks, agents, model options, evaluations and run scores; create GitHub or local agents, custom models and your own tasks; price a hosted run, start or cancel one (web3 accounts only; web2 is local-only); get the commands of a local run and upload its self-declared result.
list_tma_tasks
READ — reads TestMyAgent data; spends nothing and starts no run.read
list_tma_tasksList TestMyAgent Tasks
READ — reads TestMyAgent data; spends nothing and starts no run. Lists the TestMyAgent task catalog: curated tasks, public user tasks and your own tasks. Filters: source (all | curated | mine), kind, runnable, tag (a tag id), q (text search). Each task says local_runnable (curated, or yours) and local_run_form (task = run by slug, task_dir = run from your own folder).
| Parameter | Type | Required | Description |
|---|---|---|---|
source | enum | no | all (default) | curated | mine. One of: all, curated, mine. |
kind | string | no | Task kind filter. |
runnable | boolean | no | Only runnable (true) or only not runnable (false) tasks. |
tag | string | no | A tag id. |
q | string | no | Text search on name, slug and description. |
limit | number | no | At most this many rows (default 50). |
get_tma_task
READ — reads TestMyAgent data; spends nothing and starts no run.read
get_tma_taskGet TestMyAgent Task
READ — reads TestMyAgent data; spends nothing and starts no run. One TestMyAgent task by id or slug: name, description, tags, latest version, runnable, local_runnable and local_run_form. With agent_id it also returns whether that agent is compatible with the task (missing MCP servers or tools).
| Parameter | Type | Required | Description |
|---|---|---|---|
task | string | yes | Task id (uuid) or slug, for example dfl-transcript-mining. |
agent_id | string | no | An agent id, to check compatibility (uuid) |
get_tma_task_validation
READ — reads TestMyAgent data; spends nothing and starts no run.read
get_tma_task_validationGet TestMyAgent Task Validation
READ — reads TestMyAgent data; spends nothing and starts no run. The validation of a task you own: its status (queued, validating, passed, failed) and its report. Give validation_id (from create_tma_task_validation) or version (the validation of that task version).
| Parameter | Type | Required | Description |
|---|---|---|---|
task_id | string | yes | Task id (uuid) |
validation_id | string | no | Validation id (uuid) |
version | number | no | Task version number. |
list_tma_agents
READ — reads TestMyAgent data; spends nothing and starts no run.read
list_tma_agentsList TestMyAgent Agents
READ — reads TestMyAgent data; spends nothing and starts no run. Lists your TestMyAgent agents. Each agent has connector (github = can run hosted; local = runs only on your machine), provider and route (null when the agent has no declared value).
| Parameter | Type | Required | Description |
|---|---|---|---|
limit | number | no | At most this many rows (default 50). |
get_tma_agent
READ — reads TestMyAgent data; spends nothing and starts no run.read
get_tma_agentGet TestMyAgent Agent
READ — reads TestMyAgent data; spends nothing and starts no run. One of your TestMyAgent agents: connector, provider, route, model, repository pin. With include_results=true it also returns your results of this agent per task; each result carries result_origin (hosted | self_declared | unknown). For a local agent the results are its self-declared evaluations (the same rows as list_tma_evaluations scope=my_agents).
| Parameter | Type | Required | Description |
|---|---|---|---|
agent_id | string | yes | Agent id (uuid) |
include_results | boolean | no | Also return your results of this agent (default false) |
list_tma_model_options
READ — reads TestMyAgent data; spends nothing and starts no run.read
list_tma_model_optionsList TestMyAgent Model Options
READ — reads TestMyAgent data; spends nothing and starts no run. The enums for an agent's provider and model: providers (the lab keys, for the logo), routes (openrouter, opencode-go, ollama, …), the known models (id, label, provider, route) and your own custom models. Use the keys of this list in create_tma_local_agent and update_tma_agent; for a model that is not listed, create it first with create_tma_custom_model.
Takes no parameters.
list_tma_evaluations
READ — reads TestMyAgent data; spends nothing and starts no run.read
list_tma_evaluationsList TestMyAgent Evaluations
READ — reads TestMyAgent data; spends nothing and starts no run. Lists your TestMyAgent evaluations (newest first): agent, tasks, pass/fail counts, score, status. Each row carries result_origin (hosted = run on TestMyAgent; self_declared = uploaded from a local run, not verified; unknown = TestMyAgent did not say). Filters: scope (all | my_agents | others), origin (hosted | self_declared).
| Parameter | Type | Required | Description |
|---|---|---|---|
scope | enum | no | all (default) | my_agents | others. One of: all, my_agents, others. |
origin | enum | no | Only rows of this result origin. One of: hosted, self_declared. |
limit | number | no | At most this many rows (default 50). |
get_tma_evaluation
READ — reads TestMyAgent data; spends nothing and starts no run.read
get_tma_evaluationGet TestMyAgent Evaluation
READ — reads TestMyAgent data; spends nothing and starts no run. One of your TestMyAgent evaluations: state, stages, per-task runs and scores, events and proofs. It carries result_origin; a self_declared evaluation was uploaded from a local run and was not run or verified by TestMyAgent.
| Parameter | Type | Required | Description |
|---|---|---|---|
evaluation_id | string | yes | Evaluation id (uuid) |
get_tma_run
READ — reads TestMyAgent data; spends nothing and starts no run.read
get_tma_runGet TestMyAgent Run
READ — reads TestMyAgent data; spends nothing and starts no run. One TestMyAgent run (one task of an evaluation): status, score and its parts, tokens, model cost. The owner sees the detail. It carries result_origin (hosted | self_declared | unknown).
| Parameter | Type | Required | Description |
|---|---|---|---|
run_id | string | yes | Run id (uuid) |
list_tma_run_actions
READ — reads TestMyAgent data; spends nothing and starts no run.read
list_tma_run_actionsList TestMyAgent Run Actions
READ — reads TestMyAgent data; spends nothing and starts no run. The sanitized action log of a HOSTED run (the agent's tool calls), 200 per page; pass after_seq = nextAfterSeq for the next page. A self-declared run has no log (numbers only): it returns actions [] with reason self_declared_no_logs.
| Parameter | Type | Required | Description |
|---|---|---|---|
run_id | string | yes | Run id (uuid) |
after_seq | number | no | Return actions after this sequence number. |
get_tma_hosted_evaluation_quote
HOSTED — quote only: this call spends nothing and starts no run.read
get_tma_hosted_evaluation_quoteGet TestMyAgent Hosted Evaluation Quote
HOSTED — quote only: this call spends nothing and starts no run. It prices a HOSTED evaluation (runs on TestMyAgent infra, spends model credits when started). Returns the per-task and total model-cost estimate of a hosted evaluation of agent_id on task_ids, and a quote_token (valid 10 minutes) that create_tma_hosted_evaluation needs for a real start of the SAME agent and tasks. Hosted evaluations are for the TestMyAgent web3 app only: a web2 (Login with DFL) caller, which is every caller of this host, gets code hosted_not_available_web2, with no estimate and no quote_token. Do NOT use this for a local run: use get_tma_local_run_setup and create_tma_local_result.
| Parameter | Type | Required | Description |
|---|---|---|---|
agent_id | string | yes | Agent id (a github agent; a local agent cannot run hosted) (uuid) |
task_ids | string[] | yes | 1 to 9 task ids or slugs. |
model_release | string | no | A model release of the agent model, if the agent pins one. |
get_tma_local_run_setup
LOCAL — spends nothing on TestMyAgent; the run happens on your own machine.read
get_tma_local_run_setupGet TestMyAgent Local Run Setup
LOCAL — spends nothing on TestMyAgent; the run happens on your own machine. This never starts a run on TestMyAgent and never spends credits. Returns the exact tma CLI commands to run a task with your agent on YOUR machine (mode sandbox: the TestMyAgent sandbox runs the agent with your key; mode own_harness: your harness edits a workspace, the CLI grades it), the env var NAMES you set (never values), the CLI version, and the next tool: create_tma_local_result with the result file. Give task (a curated task or your own) or task_dir_name (a private task folder that never leaves your machine).
| Parameter | Type | Required | Description |
|---|---|---|---|
agent_id | string | yes | Your agent id (local or github) (uuid) |
task | string | no | Task id (uuid) or slug, for example dfl-transcript-mining. |
task_dir_name | string | no | The name of your own task folder (relative to where you run the CLI) |
mode | enum | no | sandbox (default) | own_harness. One of: sandbox, own_harness. |
create_tma_task
SETUP — creates or changes TestMyAgent setup; starts no run and spends nothing.write
create_tma_taskCreate TestMyAgent Task
SETUP — creates or changes TestMyAgent setup; starts no run and spends nothing. Creates your own TestMyAgent task from a task folder (task.json, instruction.md, environment/, tests/, solution/) in a GitHub repository, pinned at a commit. The repository needs the TestMyAgent GitHub App: if it is not installed, the answer has code github_app_not_installed and details.install_url. Then call create_tma_task_validation to run the validation gate.
| Parameter | Type | Required | Description |
|---|---|---|---|
repo_full_name | string | yes | GitHub repository, owner/repo. |
path | string | no | Folder of the task in the repository (default: the root) |
branch | string | no | Branch (default: the default branch) |
commit_sha | string | no | Commit SHA to pin (default: the branch HEAD) |
name | string | no | Task name, at most 60 characters. |
description | string | no | Task description, at most 120 characters. |
tags | string[] | no | At most 8 tag ids. |
est_minutes | number | no | Estimated minutes, 1 to 120. |
update_tma_task
SETUP — creates or changes TestMyAgent setup; starts no run and spends nothing.write
update_tma_taskUpdate TestMyAgent Task
SETUP — creates or changes TestMyAgent setup; starts no run and spends nothing. Changes the name, description, tags or estimated minutes of one of your TestMyAgent tasks. A new commit is create_tma_task_version, not this tool. While the task is validating, TestMyAgent refuses with code task_validating (409): read get_tma_task_validation and try again when it ends.
| Parameter | Type | Required | Description |
|---|---|---|---|
task_id | string | yes | Your task id (uuid) |
name | string | no | Task name, at most 60 characters. |
description | string | no | Task description, at most 120 characters. |
tags | string[] | no | At most 8 tag ids. |
est_minutes | number | no | Estimated minutes, 1 to 120. |
create_tma_task_version
SETUP — creates or changes TestMyAgent setup; starts no run and spends nothing.write
create_tma_task_versionCreate TestMyAgent Task Version
SETUP — creates or changes TestMyAgent setup; starts no run and spends nothing. Pins a new version of one of your TestMyAgent tasks at a new commit (default: the HEAD of the branch of the latest version). TestMyAgent makes a new version only when the task folder changed: else it answers unchanged: true with the current version. Refused with task_validating (409) while the task validates.
| Parameter | Type | Required | Description |
|---|---|---|---|
task_id | string | yes | Your task id (uuid) |
commit_sha | string | no | Commit SHA to pin (default: the branch HEAD) |
branch | string | no | Branch (default: the default branch) |
create_tma_task_validation
SETUP — creates or changes TestMyAgent setup; starts no run and spends nothing.write
create_tma_task_validationCreate TestMyAgent Task Validation
SETUP — creates or changes TestMyAgent setup; starts no run and spends nothing. Queues the validation gate of one of your TestMyAgent tasks (the latest version, or the given version): TestMyAgent runs the reference solution and the tests, with no model call. Returns validationId at once (202); read the outcome with get_tma_task_validation. A task must pass validation before an evaluation can run it.
| Parameter | Type | Required | Description |
|---|---|---|---|
task_id | string | yes | Your task id (uuid) |
version | number | no | Task version number (default: the latest version) |
create_tma_github_agent
SETUP — creates or changes TestMyAgent setup; starts no run and spends nothing.write
create_tma_github_agentCreate TestMyAgent GitHub Agent
SETUP — creates or changes TestMyAgent setup; starts no run and spends nothing. Creates a TestMyAgent agent from a folder with AGENTS.md or CLAUDE.md in a GitHub repository, pinned at a commit. This is the agent kind that can run HOSTED evaluations (on TestMyAgent infra). The model must be in the hosted allow-list. The repository needs the TestMyAgent GitHub App: else the answer has code github_app_not_installed and details.install_url. For an agent that runs only on your own machine, use create_tma_local_agent.
| Parameter | Type | Required | Description |
|---|---|---|---|
repo_full_name | string | yes | GitHub repository, owner/repo. |
agent_path | string | no | Folder of the agent in the repository (default: the root) |
model | string | no | The model id (default: the TestMyAgent default model) |
name | string | no | Agent name (default: repo/path) |
branch | string | no | Branch (default: the default branch) |
commit_sha | string | no | Commit SHA to pin (default: the branch HEAD) |
model_release | string | no | A model release id. |
description | string | no | At most 90 characters. |
visibility | enum | no | private | listed. One of: private, listed. |
requires | string[] | no | MCP servers or built-in tools the agent needs from a task. |
sample | boolean | no | true: a TestMyAgent sample repository (no GitHub App needed) |
create_tma_local_agent
LOCAL — spends nothing on TestMyAgent; the run happens on your own machine.write
create_tma_local_agentCreate TestMyAgent Local Agent
LOCAL — spends nothing on TestMyAgent; the run happens on your own machine. This never starts a run on TestMyAgent and never spends credits. SETUP: creates a TestMyAgent agent with no repository (connector local), with the provider, model and route that you declare, so its page shows the right logo. Take provider_key, route_key and model_id from list_tma_model_options (a model that is not listed: create_tma_custom_model first). A local agent runs only on your own machine (get_tma_local_run_setup, then create_tma_local_result) and cannot start a hosted evaluation.
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | yes | Agent name, unique among your agents. |
provider_key | string | no | A provider key from list_tma_model_options (the lab: anthropic, openai, deepseek, …) |
model_id | string | yes | The model id, for example anthropic/claude-sonnet-4.6 or opencode-go/deepseek/deepseek-v4. |
route_key | string | yes | A route key from list_tma_model_options (openrouter, opencode-go, ollama, …) |
harness | string | no | Your harness and version, for example "opencode 1.18.31". |
description | string | no | At most 90 characters. |
visibility | enum | no | private | listed. One of: private, listed. |
requires | string[] | no | MCP servers or built-in tools the agent needs from a task. |
update_tma_agent
SETUP — creates or changes TestMyAgent setup; starts no run and spends nothing.write
update_tma_agentUpdate TestMyAgent Agent
SETUP — creates or changes TestMyAgent setup; starts no run and spends nothing. Changes one of your TestMyAgent agents. A local agent: name, description, model_id, provider_key, route_key, harness, visibility, requires. A GitHub agent: model_id (hosted allow-list) and requires only; a new commit is a new agent pin. provider_key and route_key must be in list_tma_model_options.
| Parameter | Type | Required | Description |
|---|---|---|---|
agent_id | string | yes | Your agent id (uuid) |
name | string | no | — |
description | string | no | — |
model_id | string | no | A model of list_tma_model_options, or one of your custom models. |
provider_key | string | no | A provider key from list_tma_model_options (the lab: anthropic, openai, deepseek, …) |
route_key | string | no | A route key from list_tma_model_options (openrouter, opencode-go, ollama, …) |
harness | string | no | — |
visibility | enum | no | private | listed. One of: private, listed. |
requires | string[] | no | MCP servers or built-in tools the agent needs from a task. |
create_tma_custom_model
SETUP — creates or changes TestMyAgent setup; starts no run and spends nothing.write
create_tma_custom_modelCreate TestMyAgent Custom Model
SETUP — creates or changes TestMyAgent setup; starts no run and spends nothing. Adds a model that is not in list_tma_model_options to YOUR TestMyAgent tenant, so a local agent can declare it. It is visible only to you and never enters the public model list or rankings (at most 50 per user). Give provider_key (a known lab) or provider_label (your own provider name), not both. A model id that is already known is refused (known_model): use it as is.
| Parameter | Type | Required | Description |
|---|---|---|---|
model_id | string | yes | The model id, for example acme/mystery-7b. |
label | string | yes | Display name, at most 60 characters. |
provider_key | string | no | A provider key from list_tma_model_options (the lab: anthropic, openai, deepseek, …) |
provider_label | string | no | A custom provider name, at most 40 characters. |
route_key | string | yes | A route key from list_tma_model_options (openrouter, opencode-go, ollama, …) |
create_tma_local_result
LOCAL — spends nothing on TestMyAgent; the run happens on your own machine.write
create_tma_local_resultUpload TestMyAgent Local Result
LOCAL — spends nothing on TestMyAgent; the run happens on your own machine. This never starts a run on TestMyAgent and never spends credits. Uploads the numbers of a run that you did on your own machine: the tma-local-result/1, tma-local-result/2 or tma-local-result/3 file that tma run or tma grade wrote (see get_tma_local_run_setup). TestMyAgent stores it as a SELF-DECLARED result: it did not run it and does not verify it, and every page and read shows that. The file holds numbers and ids only; an unknown key is refused with code unknown_key and its JSON path. A v1 file is at most 1 MiB. A tma-local-result/2 file adds the test case, the agent variant (a base agent version plus one diff, independent of the case), the comparison (one baseline per case), every run, the grader results and the structural trajectory (a step list with digests and no text); it is at most 4 MiB, and its answer adds case_id, variant_id, run_ids and the per-run counts. If TestMyAgent has not applied the result-store migration yet, a v2 upload answers code schema_not_ready (nothing written) and the same run still uploads as tma-local-result/1. A tma-local-result/3 file is tma-local-result/2 plus the task summary (case.task_summary: before and expected), the grader proof and calibration (with note, author, labeler and reason_code) and the step kinds of tma-trajectory/2 in each run; it has the same 4 MiB limit and the same answer fields. A tma-local-result/2 file that carries a tma-local-result/3-only field is refused by TestMyAgent with unknown_key. If migration 0024 is missing, a tma-local-result/3 upload answers schema_not_ready (nothing written) and the same run still uploads as tma-local-result/2 or tma-local-result/1. The upload is idempotent: the same file again answers action "unchanged". dry_run: true runs every check and writes nothing.
| Parameter | Type | Required | Description |
|---|---|---|---|
result | object | yes | The tma-local-result/1, tma-local-result/2 or tma-local-result/3 JSON object, exactly as the tma CLI wrote it (format, agent_id, task, summary, runs, …) |
dry_run | boolean | no | true: run every TestMyAgent check, then write nothing (default false) |
delete_tma_unused_eval_rows
SETUP — creates or changes TestMyAgent setup; starts no run and spends nothing.write
delete_tma_unused_eval_rowsDelete Unused TestMyAgent Eval Rows
SETUP — creates or changes TestMyAgent setup; starts no run and spends nothing. It DELETES clean-up rows: your own test cases and agent variants that no run references, and, for a TestMyAgent admin only, grader versions that no grading references (for example what an upload leaves behind after you delete its evaluation). It never deletes a row that a run points at, a variant that is still the baseline of a case that stays, a grader version with a grading or with judge or calibration fields, or a row of another user: those come back in refused with a reason (not_found, referenced_by_runs, baseline_of_case, referenced_by_grader_results, grader_has_calibration, admin_only). dry_run is TRUE by default and deletes nothing. With no ids it lists what you could delete; a real delete (dry_run false) must name its ids. Delete a test case and its baseline variant in the same call to release the variant. The grader registry has no owner yet, so a grader version id from a caller who is not a TestMyAgent admin is refused with admin_only and never listed. A deleted grader version is created again by the next upload that uses it.
| Parameter | Type | Required | Description |
|---|---|---|---|
case_ids | string[] | no | Test case ids to delete (uuids, at most 200) |
variant_ids | string[] | no | Agent variant ids to delete (uuids, at most 200) |
grader_version_ids | string[] | no | Grader version ids to delete (uuids, at most 200) |
dry_run | boolean | no | true (default): list what would be deleted and delete nothing. false: delete the rows that pass every guard. |
allow_calibrated | boolean | no | TestMyAgent admin only (TMA API PR #217). true: a grader version with judge or calibration fields may also be deleted, still only when no grading points at it. A non-admin caller gets admin_only. Leave it out to keep the bare-only rule. |
update_tma_derived_columns
SETUP — creates or changes TestMyAgent setup; starts no run and spends nothing.write
update_tma_derived_columnsRecompute TestMyAgent Derived Columns
SETUP — creates or changes TestMyAgent setup; starts no run and spends nothing. It recomputes a DERIVED column of stored TestMyAgent rows from what the row already holds, and fills only an EMPTY value: a value that is set is never changed, so a second call changes nothing. column step_kind: the step kind (read, search, write, test, mcp, shell, agent, other) of each tool call of a HOSTED run, from its tool and target, for the rows written before the step kind existed. Uploaded (self-declared) runs are not touched. scope mine (default): your own runs. scope all: every owner, for a TestMyAgent admin only (else admin_only). dry_run is TRUE by default and changes nothing: it returns scanned (the empty rows read), by_kind and remaining. limit (default 5000, at most 20000) caps one call; call again while remaining is above 0.
| Parameter | Type | Required | Description |
|---|---|---|---|
column | enum | yes | The derived column to recompute. Today: step_kind (run_actions of hosted runs). One of: step_kind. |
dry_run | boolean | no | true (default): count what would change and change nothing. false: write the empty values. |
scope | enum | no | mine (default): your own runs. all: every owner (TestMyAgent admin only). One of: mine, all. |
limit | number | no | At most this many rows in one call (default 5000). |
create_tma_hosted_evaluation
HOSTED — spends model credits on TestMyAgent infra.write
create_tma_hosted_evaluationCreate TestMyAgent Hosted Evaluation
HOSTED — spends model credits on TestMyAgent infra. Do NOT use this for a local run: use get_tma_local_run_setup and create_tma_local_result. Starts the runs of a HOSTED evaluation of agent_id on task_ids, on TestMyAgent infra. Hosted evaluations are for the TestMyAgent web3 app only: a web2 (Login with DFL) caller, which is every caller of this host, gets code hosted_not_available_web2. dry_run defaults to true: a dry run prices the evaluation and returns a quote_token (10 minutes), and starts nothing. A real start (dry_run: false) needs that quote_token for the SAME agent and tasks AND max_cost_usd; it is refused when the estimate is unknown or above max_cost_usd, above US$1.5 per evaluation, above 3 tasks, or above 10 runs per actor per day.
| Parameter | Type | Required | Description |
|---|---|---|---|
agent_id | string | yes | Agent id (a github agent; a local agent cannot run hosted) (uuid) |
task_ids | string[] | yes | 1 to 9 task ids or slugs. |
model_release | string | no | A model release of the agent model, if the agent pins one. |
dry_run | boolean | no | true (DEFAULT): price only, start nothing, return a quote_token. false: really start the runs. |
quote_token | string | no | Required when dry_run is false: the quote_token of a dry run of the SAME request. |
max_cost_usd | number | no | Required when dry_run is false: refuse when the estimate is above this many USD. |
close_tma_hosted_evaluation
HOSTED — cancels the queued runs of a hosted evaluation; spends nothing.write
close_tma_hosted_evaluationClose TestMyAgent Hosted Evaluation
HOSTED — cancels the queued runs of a hosted evaluation; spends nothing. Do NOT use this for a local run: use get_tma_local_run_setup and create_tma_local_result. Cancels the queued runs of one of YOUR hosted evaluations. A run that already started finishes; there is no refund. A graded, issued or failed evaluation has nothing to cancel (code http_409).
| Parameter | Type | Required | Description |
|---|---|---|---|
evaluation_id | string | yes | Evaluation id (uuid) |
Session
Section titled “Session”See which actor, OAuth client and scope this connection uses on this host.
get_current_actor
Returns who this MCP session acts as on this host: actor {id, slug, display_name, type}, client {id, name} (the OAuth client; name is null when the provider does not show it), scope ("read" or "read+write"), and source.read
get_current_actorGet Current Actor
Returns who this MCP session acts as on this host: actor {id, slug, display_name, type}, client {id, name} (the OAuth client; name is null when the provider does not show it), scope ("read" or "read+write"), and source. source "oauth_grant": an OAuth session, the actor is the grant actor (null when the grant has no actor, which makes the session read-only). source "agent_login": a first-party dfl-auth login of an agent user; the actor is that user's own agent actor, client and scope are null. source "first_party_login": a first-party login with no own agent actor (a human user); all three are null. source "unresolved": this host could not resolve the actor. Read-only.
Takes no parameters.